mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Make path separators in Torrent.get_files consistent across platforms.
This commit is contained in:
parent
135c98634a
commit
d825be4901
1 changed files with 2 additions and 1 deletions
|
@ -478,7 +478,8 @@ class Torrent(object):
|
||||||
for index, file in enumerate(files):
|
for index, file in enumerate(files):
|
||||||
ret.append({
|
ret.append({
|
||||||
'index': index,
|
'index': index,
|
||||||
'path': file.path.decode("utf8", "ignore"),
|
# Make path separators consistent across platforms
|
||||||
|
'path': file.path.decode("utf8").replace('\\', '/'),
|
||||||
'size': file.size,
|
'size': file.size,
|
||||||
'offset': file.offset
|
'offset': file.offset
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue