datastore: relative path fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-05-11 12:17:45 +02:00 committed by Thomas Lamprecht
parent bc4af01559
commit 30ccc3003e

View File

@ -368,7 +368,7 @@ impl BackupDir {
}
pub fn relative_path(&self) -> PathBuf {
let mut path = self.store.namespace_path(&self.ns);
let mut path = self.ns.path();
path.push(self.dir.group.ty.as_str());
path.push(&self.dir.group.id);
path.push(&self.backup_time_string);