INNER CODE UNIT · Rust
allow_remove_in
ouch-org/ouch · src/sandbox/mod.rs:35
pub fn allow_remove_in<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self {
self.remove_in.push(path.into());
self
}
/// Allow removing subdirectories of `path` without granting any other write rights.
pub fn allow_remove_dir_in<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self {
self.remove_dir_in.push(path.into());
self
}
pub fn set_disabled(&mut self, disabled: bool) -> &mut Self {
self.disabled = disabled;
self
}
pub fn read_paths(&self) -> &[PathBuf] {
&self.read