Skip to content
Snippets Groups Projects
Commit 7fef7a4d authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix creating sub-folders in plugins

parent 8afb894b
No related branches found
No related tags found
No related merge requests found
[info] [info]
name: Plugin Installer name: Plugin Installer
short_name: plugin_installer short_name: plugin_installer
version: 0.11.9 version: 0.11.10
description: Install and upgrade plugins from ftp description: Install and upgrade plugins from ftp
authors: Denis Fomin <fominde@gmail.com> authors: Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org> Yann Leboulanger <asterix@lagaule.org>
......
...@@ -616,6 +616,7 @@ class Ftp(threading.Thread): ...@@ -616,6 +616,7 @@ class Ftp(threading.Thread):
# creating dirs # creating dirs
for dir_ in dirs: for dir_ in dirs:
dir_ = dir_.replace(self.plugin.server_folder, 'plugins')
if os.path.exists(os.path.join(local_dir, dir_)): if os.path.exists(os.path.join(local_dir, dir_)):
continue continue
os.mkdir(os.path.join(local_dir, dir_)) os.mkdir(os.path.join(local_dir, dir_))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment