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:


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/':

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

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

Agreed. Fixed in [5767]


Note: See TracTickets for help on using tickets.