mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
Make path separators in Torrent.get_files consistent across platforms.
This commit is contained in:
parent
135c98634a
commit
d825be4901
@ -478,7 +478,8 @@ class Torrent(object):
|
||||
for index, file in enumerate(files):
|
||||
ret.append({
|
||||
'index': index,
|
||||
'path': file.path.decode("utf8", "ignore"),
|
||||
# Make path separators consistent across platforms
|
||||
'path': file.path.decode("utf8").replace('\\', '/'),
|
||||
'size': file.size,
|
||||
'offset': file.offset
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user