diff options
author | Stefano <l.stickell@yahoo.it> | 2013-06-22 20:55:22 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-06-22 20:55:22 +0200 |
commit | 647fb9759f964ae71fdcf942c55e7ac10cbfcdcd (patch) | |
tree | c435113278cd7f0335cf999669668510142a0410 /module/plugins/hooks/HotFolder.py | |
parent | DdlstorageCom: updated regex (diff) | |
download | pyload-647fb9759f964ae71fdcf942c55e7ac10cbfcdcd.tar.xz |
HotFolder: Rollback after
http://forum.pyload.org/viewtopic.php?p=10169#p10169
Diffstat (limited to 'module/plugins/hooks/HotFolder.py')
-rw-r--r-- | module/plugins/hooks/HotFolder.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 21ed5ef8e..ee1031ad5 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -30,7 +30,7 @@ from module.plugins.Hook import Hook class HotFolder(Hook): __name__ = "HotFolder" - __version__ = "0.2" + __version__ = "0.1" __description__ = """observe folder and file for changes and add container and links""" __config__ = [ ("activated", "bool", "Activated" , "False"), ("folder", "str", "Folder to observe", "container"), @@ -46,7 +46,7 @@ class HotFolder(Hook): def periodical(self): - if self.getConfig("keep") and not exists(join(self.getConfig("folder"), "finished")): + if not exists(join(self.getConfig("folder"), "finished")): makedirs(join(self.getConfig("folder"), "finished")) if self.getConfig("watch_file"): @@ -82,4 +82,4 @@ class HotFolder(Hook): self.log.info(_("Added %s from HotFolder") % f) self.core.api.addPackage(f, [newpath], 1) - +
\ No newline at end of file |