filenameIsdir

fnbool filenameIsdir(string path) @trusted

Checks if a path is a directory.

Parameters

pathPath to check

Returns

true if the path exists and is a directory.

Example:

assert(filenameIsdir("/tmp"));
assert(!filenameIsdir("/nonexistent"));