Opened 14 years ago

Closed 14 years ago

#1614 closed bug (Fixed)

autoadd will match a directory called "torrent"

Reported by: heissfuss Owned by:
Priority: trivial Milestone: 1.3.2
Component: Core Version: 1.3.1
Keywords: autoadd directory torrent Cc:

Description

core/autoadd.py

76 for filename in os.listdir(self.configautoadd_location): 77 if filename.split(".")[-1] == "torrent":

This causes me some issues because I had my download directory named torrent and had the autoadd directory one level above it. This caused autoadd to rename my torrent directory to torrent.invalid every time deluge started.

This is a very minor issue, but it was quite frustrating before I tracked it down.

Attachments (1)

autoadd.py.patch (1.1 KB ) - added by John Garland 14 years ago.
autoadd.py patch

Download all attachments as: .zip

Change History (6)

comment:1 by heissfuss, 14 years ago

Type: defectbug

by John Garland, 14 years ago

Attachment: autoadd.py.patch added

autoadd.py patch

comment:2 by John Garland, 14 years ago

Nice find!

Would you be able to test the patch I've attached?

If it works, I'll commit it and it will be in the next release.

comment:3 by Calum, 14 years ago

Milestone: Future1.3.2

comment:4 by heissfuss, 14 years ago

The attached patch works. Thanks.

comment:5 by John Garland, 14 years ago

Resolution: fixed
Status: newclosed

Awesome. I've committed it to git and so it will be in the next release :)

Note: See TracTickets for help on using tickets.