true if the path exists and is a directory.
Example:
assert(filenameIsdir("/tmp"));
assert(!filenameIsdir("/nonexistent"));bool filenameIsdir(string path) @trustedChecks if a path is a directory.
path | Path to check |
true if the path exists and is a directory.
Example:
assert(filenameIsdir("/tmp"));
assert(!filenameIsdir("/nonexistent"));