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
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.
Implementors
impl UnixFileSystem for FakeFileSystem
impl UnixFileSystem for OsFileSystem