use {crate::fh::FileHierarchy, std::path::PathBuf};
pub struct FileHierarchyBuilder {
mountpoint: PathBuf,
}
impl FileHierarchyBuilder {
pub fn new() -> Self {
Self {
mountpoint: PathBuf::from("."),
}
}
pub fn mountpoint(mut self, mountpoint: PathBuf) -> Self {
self.mountpoint = mountpoint;
self
}
pub fn build(self) -> FileHierarchy {
FileHierarchy {
mountpoint: self.mountpoint,
}
}
}
impl Default for FileHierarchyBuilder {
fn default() -> Self {
Self::new()
}
}