diff options
Diffstat (limited to 'pyload/plugin/addon/HotFolder.py')
-rw-r--r-- | pyload/plugin/addon/HotFolder.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/addon/HotFolder.py b/pyload/plugin/addon/HotFolder.py index 14d0a7ce3..f7f543c3a 100644 --- a/pyload/plugin/addon/HotFolder.py +++ b/pyload/plugin/addon/HotFolder.py @@ -3,10 +3,9 @@ from __future__ import with_statement import os +import shutil import time -from shutil import move - from pyload.plugin.Addon import Addon from pyload.utils import fs_encode, fs_join @@ -65,7 +64,7 @@ class HotFolder(Addon): continue newpath = os.path.join(folder, "finished", f if self.getConfig('keep') else "tmp_" + f) - move(path, newpath) + shutil.move(path, newpath) self.logInfo(_("Added %s from HotFolder") % f) self.core.api.addPackage(f, [newpath], 1) |