From 8298a93dcc19f3f02de5f8763d17a4ab3a2cd392 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Mon, 12 Nov 2012 21:27:08 -0500 Subject: [PATCH] Make path separators in Torrent.get_files consistent across platforms. --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index e2b83c816..d244be610 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -537,7 +537,7 @@ class Torrent(object): for index, file in enumerate(files): ret.append({ 'index': index, - 'path': file.path.decode("utf8", "ignore"), + 'path': file.path.decode("utf8").replace('\\', '/'), 'size': file.size, 'offset': file.offset })