file_only,
Causes OpenFile to return error.IsDir if the opened handle would be a directory.
OpenFile
error.IsDir
dir_only,
Causes OpenFile to return error.NotDir if the opened handle would be a file.
error.NotDir
any,
OpenFile does not discriminate between opening files and directories.