mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-10-04 20:16:38 +00:00
datastore: add BackupGroup::exists helper
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
5444b914af
commit
487c5be9ab
@ -78,6 +78,12 @@ impl BackupGroup {
|
|||||||
path
|
path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Simple check whether a group exists. This does not check whether there are any snapshots,
|
||||||
|
/// but rather it simply checks whether the directory exists.
|
||||||
|
pub fn exists(&self) -> bool {
|
||||||
|
self.full_group_path().exists()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn list_backups(&self) -> Result<Vec<BackupInfo>, Error> {
|
pub fn list_backups(&self) -> Result<Vec<BackupInfo>, Error> {
|
||||||
let mut list = vec![];
|
let mut list = vec![];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user