Trait cap_fs_ext::OpenOptionsMaybeDirExt[][src]

pub trait OpenOptionsMaybeDirExt {
    fn maybe_dir(&mut self, maybe_dir: bool) -> &mut Self;
}

Extension trait for cap_primitives::fs::OpenOptions which adds maybe_dir, a function for controlling whether an open should attempt to succeed on a directory. On Posix-ish platforms, opening a directory always succeeds, but on Windows, opening a directory needs this option.

Required methods

fn maybe_dir(&mut self, maybe_dir: bool) -> &mut Self[src]

Sets the option for disabling an error that might be generated by the opened object being a directory.

Loading content...

Implementors

impl OpenOptionsMaybeDirExt for OpenOptions[src]

fn maybe_dir(&mut self, maybe_dir: bool) -> &mut Self[src]

Loading content...