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

This commit is contained in:
Andrew Resch 2009-09-21 05:39:43 +00:00
commit a23812f880

View file

@ -68,7 +68,7 @@ class AutoAdd(component.Component):
return return
# Check the auto add folder for new torrents to add # 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"]) log.warning("Invalid AutoAdd folder: %s", self.config["autoadd_location"])
component.pause("AutoAdd") component.pause("AutoAdd")
return return