INNER CODE UNIT · Rust

allow_remove_dir_in

ouch-org/ouch · src/sandbox/mod.rs:41

    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
    }

    pub fn read_write_paths(&self) -> &[PathBuf] {
        &self.read_write
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…