diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-14 03:23:54 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-14 03:23:54 +0200 |
commit | 40d188eb6260d6e53154649fce3ae449477cc6bf (patch) | |
tree | 4b7b6bfcad0ce1bc93e0e8fc4cf9d12f9f8dcb80 /module/plugins | |
parent | [Crypter] Set folder (diff) | |
download | pyload-40d188eb6260d6e53154649fce3ae449477cc6bf.tar.xz |
save_path and save_join renamed to safe_path and safe_join
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Plugin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 48b489552..51fa7c87c 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -31,7 +31,7 @@ if os.name != "nt": from itertools import islice -from module.utils import save_join, save_path, fs_encode, fs_decode +from module.utils import safe_join, safe_path, fs_encode, fs_decode def chunks(iterable, size): it = iter(iterable) @@ -483,7 +483,7 @@ class Plugin(Base): download_folder = self.config['general']['download_folder'] - location = save_join(download_folder, self.pyfile.package().folder) + location = safe_join(download_folder, self.pyfile.package().folder) if not exists(location): makedirs(location, int(self.core.config["permission"]["folder"], 8)) @@ -499,7 +499,7 @@ class Plugin(Base): # convert back to unicode location = fs_decode(location) - name = save_path(self.pyfile.name) + name = safe_path(self.pyfile.name) filename = join(location, name) @@ -598,7 +598,7 @@ class Plugin(Base): raise SkipDownload(pyfile.pluginname) download_folder = self.config['general']['download_folder'] - location = save_join(download_folder, pack.folder, self.pyfile.name) + location = safe_join(download_folder, pack.folder, self.pyfile.name) if starting and self.core.config['download']['skip_existing'] and exists(location): size = os.stat(location).st_size |