Path.isFile

bool isFile() const @safe

Checks if the path is a file.

Returns

true if the path is a file, false otherwise.