$lof » History » Version 1
Per Amundsen, 08/11/2015 01:16 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 | filename|foldername - Filename or folder to retrieve information from. |
||
14 | |||
15 | *Properties* |
||
16 | |||
17 | .size - File size in bytes. (returns 0 for folders) |
||
18 | .ctime - Creation time. (unix timestamp) |
||
19 | .mtime - Last modification time. (unix timestamp) |
||
20 | .atime - Last access time. (unix timestamp) |
||
21 | .shortfn - Short file name. |
||
22 | .longfn - Full file name. |
||
23 | .attr - File attributes. |
||
24 | .sig - returns "ok" if digital signed, else "none". |
||
25 | |||
26 | *Example* |
||
27 | |||
28 | <pre> |
||
29 | ; Show AdiIRC.exe filesize |
||
30 | //echo -ag $lof($adiircexe).size |
||
31 | |||
32 | ; Show explorer.exe digital signature |
||
33 | //echo -ag $lof(c:\windows\explorer.exe).sig |
||
34 | </pre> |