Opened 14 years ago
Closed 14 years ago
#1014 closed bug (Fixed)
autoadd feature should verify that autoadd location is directory
Reported by: | craSH | Owned by: | andar |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core | Version: | 1.2.0_dev |
Keywords: | autoadd | Cc: |
Description
The autoadd code currently only checks to see if the autoadd location exists, not that it is a directory - if it exists and is a file, it will raise an exception rather than being handled properly.
In 'deluge/core/autoadd.py':
70 # Check the auto add folder for new torrents to add 71 if not os.path.exists(self.config["autoadd_location"]):
os.path.exists should simply be os.path.isdir, which will behave the same as .exists but will return false if the argument is not a directory.
Change History (1)
comment:1 Changed 14 years ago by andar
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Agreed. Fixed in [5767]
Thanks!