utime
Description:
[ Version ( since = "2.18" ) ]
[ CCode ( cname = "g_utime" ) ]
public int utime (string filename, UTimBuf? times = null)
[ CCode ( cname = "g_utime" ) ]
public int utime (string filename, UTimBuf? times = null)
A wrapper for the POSIX utime
function.
The utime
function sets the access and modification timestamps of a file.
See your C library manual for more details about how utime
works on your system.
Parameters:
filename |
a pathname in the GLib file name encoding (UTF-8 on Windows) |
utb |
a pointer to a struct utimbuf. |
Returns:
0 if the operation was successful, -1 if an error occurred |
Namespace: GLib.FileUtils
Package: glib-2.0