Opened 14 years ago
Closed 14 years ago
#1498 closed patch (Fixed)
[PATCH] core.torrent.Torrent.rename_folder adds a forward slash.
Reported by: | Hiram | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | Core | Version: | other (please specify) |
Keywords: | Cc: |
Description
torrent.py adds an unnecessary forward slash to the end of a folder when it gets renamed. This creates a rollover problem when it renames the files in the torrent to match the folder, as it creates a double forward slash.
E.g., "Folder", containing "file.txt", becomes "Folderfile.txt" which creates viewing problems in the GTK client, not sure if it creates a problem in the filesystem though.
The attached patch corrects this.
Attachments (2)
Change History (4)
by , 14 years ago
Attachment: | torrent.py-folder-rename.patch added |
---|
by , 14 years ago
Attachment: | 0002-Fix-1498-On-folder-rename-ensures-trailing-slash-and.patch added |
---|
Cas' Alternative Patch
comment:1 by , 14 years ago
I'm afraid you have removed one problem and created another when a folder name does not have a trailing slash.
I have attached a alternative patch.
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
A different fix has been applied to master and 1.3-stable
Patch file corrects unnecessary forward slashes.