? TAB(-10,AG_FILETIMES); fspec, opcode {,loc'rem, mtime, ctime, atime}; chr(127); ? Tab(-10,x) Syntax Notes
input "" status, mtime, ctime, atime
AG_FILETIMES (112) provides a way to set a file's last modification time (mtime), creation time (ctime), and/or last access time (atime). Setting the mtime of a file is equivalent in the UNIX world to using the touch command on the file. For convenience, the function can also retrieve the file times, overlapping functionality already provided by MX_FILESTATS.
This function has both a subroutine and a print tab implementation.
Parameters
fspec (String) [in]
file spec (client perspective) to get or set times for
opcode (Num) [in]
0=get, 1=set
loc'rem (String) [in] -
C to check cache directories, else fspec must be fully qualified
mtime, ctime, atime (Num) [in/out]
modify, create, and access times
Note that access time isn't uniformly supported across Windows systems.
See Also
History
2023 August, A-Shell 6.5.1740: Function added to A-Shell