Trait filesystem::UnixFileSystem [] [src]

pub trait UnixFileSystem {
    fn mode<P: AsRef<Path>>(&self, path: P) -> Result<u32>;
fn set_mode<P: AsRef<Path>>(&self, path: P, mode: u32) -> Result<()>; }

Required Methods

Returns the current mode bits of path.

  • Errors

  • path does not exist.

  • Current user has insufficient permissions.

Sets the mode bits of path.

  • Errors

  • path does not exist.

  • Current user has insufficient permissions.

Implementors