From d825be4901236323c9c8ef1cc5626436654bbe83 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Mon, 12 Nov 2012 21:12:54 -0500 Subject: [PATCH] Make path separators in Torrent.get_files consistent across platforms. --- deluge/core/torrent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index dff29ca5e..7e7f955b7 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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 })