Opened 15 years ago

Closed 15 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 by andar, 15 years ago

Resolution: fixed
Status: newclosed

Agreed. Fixed in [5767]

Thanks!

Note: See TracTickets for help on using tickets.