From aee9848c804289222951e7514fce31f02c88083e Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Fri, 12 Apr 2019 07:50:31 -0700 Subject: [PATCH] Fix potential bug with removing repository directory --- rbackup/struct/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbackup/struct/repository.py b/rbackup/struct/repository.py index 24eb741..f17ab74 100644 --- a/rbackup/struct/repository.py +++ b/rbackup/struct/repository.py @@ -241,7 +241,7 @@ class Repository(Hierarchy): if remove_repo_dir: try: - self.path.unlink() + shutil.rmtree(self) except PermissionError as e: syslog.error(e) else: