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 ());
}
| path |
path to file or directory. |
|
the last modification time, or null on error. |