Skip to content

Commit 5f22a5f

Browse files
eLBatimstuttgart
authored andcommitted
FIX sftp unlink path (OCA#767)
1 parent 18863f9 commit 5f22a5f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

auto_backup/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "Database Auto-Backup",
99
"summary": "Backups database",
10-
"version": "10.0.1.0.1",
10+
"version": "10.0.1.0.2",
1111
"author": (
1212
"Yenthe Van Ginneken, "
1313
"Agile Business Group, "

auto_backup/models/db_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def cleanup(self):
232232
for name in remote.listdir(rec.folder):
233233
if (name.endswith(".dump.zip") and
234234
os.path.basename(name) < oldest):
235-
remote.unlink(name)
235+
remote.unlink('%s/%s' % (rec.folder, name))
236236

237237
@api.multi
238238
@contextmanager

0 commit comments

Comments
 (0)