touch


Description:

public static bool touch (Path path)

Creates a file if it does not exist, or updates its modification time if it does.

Example:

    var path = new Path ("/tmp/touchme.txt");
bool ok = Files.touch (path);

Parameters:

path

path to the file.

Returns:

true on success, false on error.