R3m/framework Function reference file.touch

{file.touch(String $url, Int $time=null, Int $atime=null)}

{file.touch()} — Sets access and modification time of file.

Attempts to set the access and modification times of the file named in the filename parameter to the value given in time.
Note that the access time is always modified, regardless of the number of parameters.

If the file does not exist, it will be created.

Returns true on success or false on failure.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com