FileUtils.utime

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. Since 2.18

class FileUtils
static
int
utime
(
string filename
,
void* utb
)

Parameters

filename string

a pathname in the GLib file name encoding (UTF-8 on Windows)

utb void*

a pointer to a struct utimbuf.

Return Value

Type: int

0 if the operation was successful, -1 if an error occurred

Meta