lastModified


Description:

public static DateTime? lastModified (Path path)

Returns the last modification time of a file or directory.

Example:

    var path = new Path ("/tmp/file.txt");
GLib.DateTime? mtime = Files.lastModified (path);
if (mtime != null) {
print ("Modified: %s\n", mtime.format_iso8601 ());
}

Parameters:

path

path to file or directory.

Returns:

the last modification time, or null on error.