Opened 11 years ago

Closed 11 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 johnnyg 11 years ago.
autoadd.py patch

Download all attachments as: .zip

Change History (6)

comment:1 Changed 11 years ago by heissfuss

  • Type changed from defect to bug

Changed 11 years ago by johnnyg

autoadd.py patch

comment:2 Changed 11 years ago by johnnyg

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 Changed 11 years ago by Cas

  • Milestone changed from Future to 1.3.2

comment:4 Changed 11 years ago by heissfuss

The attached patch works. Thanks.

comment:5 Changed 11 years ago by johnnyg

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.