#1014: autoadd feature should verify that autoadd location is directory
---------------------+------------------------------------------------------
 Reporter:  craSH    |       Owner:  andar    
     Type:  bug      |      Status:  new      
 Priority:  trivial  |   Milestone:           
Component:  core     |     Version:  1.2.0_dev
 Keywords:  autoadd  |  
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1014>
Deluge <http://deluge-torrent.org/>
Deluge project

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to