[][src]Trait filesystem::UnixFileSystem

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

fn mode<P: AsRef<Path>>(&self, path: P) -> Result<u32>

Returns the current mode bits of path.

Errors

  • path does not exist.
  • Current user has insufficient permissions.

fn set_mode<P: AsRef<Path>>(&self, path: P, mode: u32) -> Result<()>

Sets the mode bits of path.

Errors

  • path does not exist.
  • Current user has insufficient permissions.
Loading content...

Implementors

impl UnixFileSystem for FakeFileSystem[src]

impl UnixFileSystem for OsFileSystem[src]

Loading content...