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
parent 0d2c73063c
commit a23812f880

View File

@ -68,7 +68,7 @@ class AutoAdd(component.Component):
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