backup/datastore: create_backup_dir: show if path existed

To enable asserting the creation of a new backup rather than
adding to an existing one.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-02-27 10:02:22 +01:00
parent 25f1650b71
commit 8731e40a7f
2 changed files with 15 additions and 10 deletions

View File

@ -81,7 +81,7 @@ fn upload_catar(
let datastore = DataStore::lookup_datastore(store)?;
let mut path = datastore.create_backup_dir(backup_type, backup_id, backup_time)?;
let (mut path, _new) = datastore.create_backup_dir(backup_type, backup_id, backup_time)?;
path.push(archive_name);