true if the path is an existing directory, false
otherwise (including when the path does not exist).
bool isDir() const @safeChecks if the path is a directory.
true if the path is an existing directory, false
otherwise (including when the path does not exist).