$lof » History » Revision 3
Revision 2 (Per Amundsen, 02/18/2017 08:51 AM) → Revision 3/4 (Per Amundsen, 02/23/2023 04:25 PM)
_Added in 1.9.3_ *$lof(filename|foldername)* Returns information about the specified file or folder. Default returns file size. _Same as [[$file]]._ *Parameters* table(ktable). |*Parameter*|*Description*| | filename<notextile>|</notextile>foldername | filename|foldername - Filename or folder to retrieve information from. | *Properties* table(ktable). |*Property*|*Description*| | .size | - File size in bytes. (returns 0 for folders) | | .ctime | - Creation time. (unix timestamp) | | .mtime | - Last modification time. (unix timestamp) | | .atime | - Last access time. (unix timestamp) | | .shortfn | - Short file name. | | .longfn | - Full file name. | | .attr | - File attributes. | | .sig | - returns "ok" if digital signed, else "none". | | .version | - returns the file version, if any. | *Example* <pre> ; Show AdiIRC.exe filesize //echo -ag $lof($adiircexe).size ; Show explorer.exe digital signature //echo -ag $lof(c:\windows\explorer.exe).sig </pre>