structstd.fs.Dir.OpenOptions[src]

Fields

access_sub_paths: bool = true

true means the opened directory can be used as the Dir parameter for functions which operate based on an open directory handle. When false, such operations are Illegal Behavior.

iterate: bool = false

true means the opened directory can be scanned for the files and sub-directories of the result. It means the iterate function can be called.

no_follow: bool = false

true means it won't dereference the symlinks.

Source Code

Source code
pub const OpenOptions = struct {
    /// `true` means the opened directory can be used as the `Dir` parameter
    /// for functions which operate based on an open directory handle. When `false`,
    /// such operations are Illegal Behavior.
    access_sub_paths: bool = true,

    /// `true` means the opened directory can be scanned for the files and sub-directories
    /// of the result. It means the `iterate` function can be called.
    iterate: bool = false,

    /// `true` means it won't dereference the symlinks.
    no_follow: bool = false,
}