Skip to content

Commit

Permalink
FIX sftp unlink path (OCA#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati authored and anhvu-sg committed Sep 14, 2022
1 parent 43da4bb commit 2b6cfb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auto_backup/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "
Expand Down
2 changes: 1 addition & 1 deletion auto_backup/models/db_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b6cfb3

Please sign in to comment.