Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-08-28 15:27:26 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-08-28 15:27:26 +0400
commit41fb67d242071dc925d2ba17313e141522f963a0 (patch)
tree6ca9d44df172847a629ee13b3b3003e6a512f1b5
parent917b684b7dbff2192bd8971940cae2ede8e1cf66 (diff)
fix downloading folder
-rw-r--r--plugin_installer/plugin_installer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py
index 8f4ec5f..8a63e30 100644
--- a/plugin_installer/plugin_installer.py
+++ b/plugin_installer/plugin_installer.py
@@ -606,7 +606,7 @@ class Ftp(threading.Thread):
else:
files.append(i[1:])
dirs, files = [], []
- nlstr('/plugins/' + remote_dir)
+ nlstr('/%s/%s' + (self.plugin.server_folder, remote_dir))
base_dir, user_dir = gajim.PLUGINS_DIRS
if not os.path.isdir(user_dir):
@@ -626,7 +626,8 @@ class Ftp(threading.Thread):
for filename in files:
gobject.idle_add(self.progressbar.set_text,
_('Downloading "%s"') % filename)
- full_filename = os.path.join(local_dir, filename)
+ full_filename = os.path.join(local_dir, filename.replace(
+ self.plugin.server_folder, 'plugins'))
try:
self.ftp.retrbinary('RETR /%s' % filename,
open(full_filename, 'wb').write)