Struct conserve::RestoreTree
source · pub struct RestoreTree { /* private fields */ }
Expand description
A write-only tree on the filesystem, as a restore destination.
Implementations§
source§impl RestoreTree
impl RestoreTree
sourcepub fn create(path: &Path, report: &Report) -> Result<RestoreTree>
pub fn create(path: &Path, report: &Report) -> Result<RestoreTree>
Create a RestoreTree.
The destination must either not yet exist, or be an empty directory.
sourcepub fn create_overwrite(path: &Path, report: &Report) -> Result<RestoreTree>
pub fn create_overwrite(path: &Path, report: &Report) -> Result<RestoreTree>
Create a RestoreTree, even if the destination directory is not empty.