src/backup/backup_info.rs: new helper to list files

This commit is contained in:
Dietmar Maurer
2019-03-06 10:49:01 +01:00
parent dd79265a8a
commit 58e99e138e
2 changed files with 22 additions and 2 deletions

View File

@ -168,6 +168,11 @@ impl DataStore {
BackupInfo::list_backups(&path)
}
pub fn list_files(&self, backup_dir: &BackupDir) -> Result<Vec<String>, Error> {
let path = self.base_path();
BackupInfo::list_files(&path, backup_dir)
}
pub fn list_images(&self) -> Result<Vec<PathBuf>, Error> {
let base = self.base_path();