pub trait OpenOptionsFollowExt {
    // Required method
    fn follow(&mut self, follow: FollowSymlinks) -> &mut Self;
}
Expand description

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§

source

fn follow(&mut self, follow: FollowSymlinks) -> &mut Self

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.

Implementors§