Created
November 13, 2012 17:30
-
-
Save cas--/4067169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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