Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

Official ZPE/YASS documentationfile_touch

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
Feedback 👍
Comments are sent via email to me.