INNER CODE UNIT · Rust
allow_read_write
ouch-org/ouch · src/sandbox/mod.rs:29
pub fn allow_read_write<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self {
self.read_write.push(path.into());
self
}
/// Allow deleting files inside `path` without granting any other write rights.
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 {