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.