exists


Description:

public static bool exists (Path path)

Returns whether the file or directory exists in the specified path.

Example:

    var path = new Path ("/tmp/example.txt");
if (Files.exists (path)) {
// file or directory exists
}

Parameters:

path

Path to file or directory.

Returns:

true if file or directory exists, false otherwise.