Author: andar

Revision: 5767

Log:
        Fix #1014 autoadd should verify that the autoadd location is a directory

Diff:
Modified: trunk/deluge/core/autoadd.py
===================================================================
--- trunk/deluge/core/autoadd.py        2009-09-19 05:41:36 UTC (rev 5766)
+++ trunk/deluge/core/autoadd.py        2009-09-21 05:39:43 UTC (rev 5767)
@@ -68,7 +68,7 @@
             return
 
         # Check the auto add folder for new torrents to add
-        if not os.path.exists(self.config["autoadd_location"]):
+        if not os.path.isdir(self.config["autoadd_location"]):
             log.warning("Invalid AutoAdd folder: %s", 
self.config["autoadd_location"])
             component.pause("AutoAdd")
             return



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" 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-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to