file

file.file.touch

Declaration
lua
file.touch(path [, atime, mtime])
Description
Create file if not exists, or update timestamps.
Parameters
NameTypeRequiredDefaultDescription
pathstringRequired—
atimenumberOptional—Access time (epoch)
mtimenumberOptional—Modification time (epoch)
Return Values
TypeDescription
boolean
Example
lua
file.touch("marker.txt")
Notes
Both time params must be given together.