Trait nofollow::OpenOptionsExt [−][src]
An extension trait for OpenOptions
.
Required methods
fn no_follow_with(&mut self, flags: i32) -> &mut Self
[src]
Don’t dereference if the given path is a symbolic link when opening the file, and set custom open flags at the same time.
Note that due to the behaviour of OpenOptionsExt::custom_flags
,
this function will overwrite any previously set custom open flags.
Platform-specific behaviour
The meaning of “do not dereference” is platform-specific. On Unix-like operating systems,
OpenOptions::open
fails with ELOOP
.
On Windows, it opens the symbolic link itself
instead.
Provided methods
fn no_follow(&mut self) -> &mut Self
[src]
Don’t dereference if the given path is a symbolic link when opening the file.
Equivalent to self.no_follow_with(0)
(note that 0
means it will
clear any previously set custom open flags at the same time), see that method for
platform-specific behaviour.