summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-01-10 23:29:15 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-01-10 23:29:15 +0100
commitf5c400a01d8ecae6566b1e33736fc4a7315de8da (patch)
treec30014c46684a857fd8b9916cfae30e5aa5b8e58
parent[Plugin] fix #2260 (diff)
downloadpyload-f5c400a01d8ecae6566b1e33736fc4a7315de8da.tar.xz
[HotFolder] fix #2279
-rw-r--r--module/plugins/hooks/HotFolder.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py
index 752b9dc5f..ef8145cec 100644
--- a/module/plugins/hooks/HotFolder.py
+++ b/module/plugins/hooks/HotFolder.py
@@ -3,16 +3,17 @@
from __future__ import with_statement
import os
+import shutil
import time
from module.plugins.internal.Addon import Addon
-from module.plugins.internal.misc import encode, fsjoin, move_tree
+from module.plugins.internal.misc import encode, fsjoin
class HotFolder(Addon):
__name__ = "HotFolder"
__type__ = "hook"
- __version__ = "0.22"
+ __version__ = "0.23"
__status__ = "testing"
__config__ = [("activated", "bool", "Activated" , False ),
@@ -61,7 +62,7 @@ class HotFolder(Addon):
continue
newpath = os.path.join(folder, "finished", "tmp_" + f if self.config.get('delete') else f)
- move_tree(path, newpath)
+ shutil.move(path, newpath)
self.log_info(_("Added %s from HotFolder") % f)
self.pyload.api.addPackage(f, [newpath], 1)