OptionalisDirectory?: booleanWhether to check for the existence of a directory.
OptionalisFile?: falseMust be false or omitted when isDirectory is true.
OptionalisDirectory?: falseMust be false or omitted when isFile is true.
OptionalisFile?: booleanWhether to check for the existence of a file.
Options to determine the existence of a file or directory.
The
isDirectoryandisFileoptions are mutually exclusive. Setting both totruewill result in a compile-time error (and runtime error as fallback).