FIX sftp unlink path (#767)

pull/2712/head
Lorenzo Battistini 2017-03-17 21:42:01 +01:00 committed by tafaRU
parent 18aa6c64c9
commit df31a9e918
2 changed files with 2 additions and 2 deletions

View File

@ -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, "

View File

@ -232,7 +232,7 @@ class DbBackup(models.Model):
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