#[derive(Debug, Clone)]
pub struct Config {
pub max_path_depth: usize,
pub max_symlink_depth: usize,
}
impl Default for Config {
fn default() -> Self {
Self {
max_path_depth: 256,
max_symlink_depth: 40,
}
}
}
impl Config {
#[must_use]
pub fn new() -> Self {
Self::default()
}
#[must_use]
pub fn with_max_path_depth(mut self, depth: usize) -> Self {
self.max_path_depth = depth;
self
}
#[must_use]
pub fn with_max_symlink_depth(mut self, depth: usize) -> Self {
self.max_symlink_depth = depth;
self
}
}