diff --git a/disk_objectstore/backup_utils.py b/disk_objectstore/backup_utils.py index 5b228b1..deb0943 100644 --- a/disk_objectstore/backup_utils.py +++ b/disk_objectstore/backup_utils.py @@ -98,9 +98,7 @@ def validate(self): f"Input validation failed: {path} not accessible." ) - path_exists = self.check_path_exists(self.path) - - if not path_exists: + if not self.check_path_exists(self.path): success = self.run_cmd(["mkdir", str(self.path)])[0] if not success: raise BackupError(