From 2b6cfb3dbba1559185a6fe8e6dc851dec3331a24 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Fri, 17 Mar 2017 21:42:01 +0100 Subject: [PATCH] FIX sftp unlink path (#767) --- auto_backup/__manifest__.py | 2 +- auto_backup/models/db_backup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_backup/__manifest__.py b/auto_backup/__manifest__.py index 58927d9ac8e..7eba3b2a4b0 100644 --- a/auto_backup/__manifest__.py +++ b/auto_backup/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Database Auto-Backup", "summary": "Backups database", - "version": "10.0.1.0.1", + "version": "10.0.1.0.2", "author": ( "Yenthe Van Ginneken, " "Agile Business Group, " diff --git a/auto_backup/models/db_backup.py b/auto_backup/models/db_backup.py index 8503fe15646..a28280190a4 100644 --- a/auto_backup/models/db_backup.py +++ b/auto_backup/models/db_backup.py @@ -232,7 +232,7 @@ def cleanup(self): for name in remote.listdir(rec.folder): if (name.endswith(".dump.zip") and os.path.basename(name) < oldest): - remote.unlink(name) + remote.unlink('%s/%s' % (rec.folder, name)) @api.multi @contextmanager