[][src]Trait cap_fs_ext::OpenOptionsFollowExt

pub trait OpenOptionsFollowExt {
    pub fn follow(&mut self, follow: FollowSymlinks) -> &mut Self;
}

Extension trait for cap_primitives::fs::OpenOptions which adds follow, a function for controlling whether a symlink in the last component of a path is followed.

Required methods

pub fn follow(&mut self, follow: FollowSymlinks) -> &mut Self[src]

Sets the option for following symlinks in the last component of a path.

This option, when set to FollowSymlinks::Yes, will indicate that a symbolic link in the last component of a path will be followed. When set to FollowSymlinks::No, it will indicate that attempting to resolve a path which ends in a symbolic link will fail.

Loading content...

Implementations on Foreign Types

impl OpenOptionsFollowExt for OpenOptions[src]

Loading content...

Implementors

Loading content...