Skip to content

Instantly share code, notes, and snippets.

@cas--
Created November 13, 2012 17:30
Show Gist options
  • Save cas--/4067169 to your computer and use it in GitHub Desktop.
Save cas--/4067169 to your computer and use it in GitHub Desktop.
index dff29ca..d80a0f7 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -70,9 +70,9 @@ def clean_filename(filename):
newfilepath = clean_filename(filepath)
if folder is True:
- return newfilepath + '/'
+ return os.path.normpath(newfilepath) + os.path.sep
else:
- return newfilepath
+ return os.path.normpath(newfilepath)
class TorrentOptions(dict):
def __init__(self):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment