$lof » History » Version 3
Per Amundsen, 02/23/2023 04:25 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.3_ |
|---|---|---|---|
| 2 | |||
| 3 | *$lof(filename|foldername)* |
||
| 4 | |||
| 5 | Returns information about the specified file or folder. |
||
| 6 | |||
| 7 | Default returns file size. |
||
| 8 | |||
| 9 | _Same as [[$file]]._ |
||
| 10 | |||
| 11 | *Parameters* |
||
| 12 | |||
| 13 | 3 | Per Amundsen | table(ktable). |
| 14 | |*Parameter*|*Description*| |
||
| 15 | | filename<notextile>|</notextile>foldername | Filename or folder to retrieve information from. | |
||
| 16 | 1 | Per Amundsen | |
| 17 | *Properties* |
||
| 18 | |||
| 19 | 3 | Per Amundsen | table(ktable). |
| 20 | |*Property*|*Description*| |
||
| 21 | | .size | File size in bytes. (returns 0 for folders) | |
||
| 22 | | .ctime | Creation time. (unix timestamp) | |
||
| 23 | | .mtime | Last modification time. (unix timestamp) | |
||
| 24 | | .atime | Last access time. (unix timestamp) | |
||
| 25 | | .shortfn | Short file name. | |
||
| 26 | | .longfn | Full file name. | |
||
| 27 | | .attr | File attributes. | |
||
| 28 | | .sig | returns "ok" if digital signed, else "none". | |
||
| 29 | | .version | returns the file version, if any. | |
||
| 30 | 1 | Per Amundsen | |
| 31 | *Example* |
||
| 32 | |||
| 33 | <pre> |
||
| 34 | ; Show AdiIRC.exe filesize |
||
| 35 | //echo -ag $lof($adiircexe).size |
||
| 36 | |||
| 37 | ; Show explorer.exe digital signature |
||
| 38 | //echo -ag $lof(c:\windows\explorer.exe).sig |
||
| 39 | </pre> |