To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationfile_touch

file_touch (string file[, integer time]) ⇒ boolean

'Touches' a file, setting its modification time to the current time. Optionally takes a time to set it to.

First available: Version 1.9.13

Notes

This function works identically to the Linux/Unix-like operating system touch feature that touches a file to set the time to a specified time. With the ZPE implementation, it gets the current time and sets the file modification time to that, thus making it cross compatible with Windows operating systems.

Comments

There are no comments on this page.

New comment
Reply
Code previewClose
Feedback 👍
Comments are sent via email to me.