enumstd.os.windows.OpenFileOptions.Filter[src]

Fields

file_only

Causes OpenFile to return error.IsDir if the opened handle would be a directory.

dir_only

Causes OpenFile to return error.NotDir if the opened handle would be a file.

any

OpenFile does not discriminate between opening files and directories.

Source Code

Source code
pub const Filter = enum {
    /// Causes `OpenFile` to return `error.IsDir` if the opened handle would be a directory.
    file_only,
    /// Causes `OpenFile` to return `error.NotDir` if the opened handle would be a file.
    dir_only,
    /// `OpenFile` does not discriminate between opening files and directories.
    any,
}