INNER CODE UNIT · Rust

allow_read

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

    pub fn allow_read<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self {
        self.read.push(path.into());
        self
    }

    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 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…