isFile


Description:

public static bool isFile (Path path)

Returns whether the file exists in the specified path.

Example:

    var path = new Path ("/tmp/example.txt");
if (Files.isFile (path)) {
// path is a regular file
}

Parameters:

path

Path to file or directory.

Returns:

true if the path is a regular file, false otherwise.