Project

General

Profile

$lof » History » Version 4

Per Amundsen, 02/23/2023 04:26 PM

1 4 Per Amundsen
_Added in 1.8.10_
2 1 Per Amundsen
3 4 Per Amundsen
*$lof(filename|foldername|name)*
4 1 Per Amundsen
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 4 Per Amundsen
| filename<notextile>|</notextile>foldername<notextile>|</notextile>name | Filename or folder or open file in [[$fopen]] 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 1 Per Amundsen
| .shortfn | Short file name. |
26
| .longfn | Full file name. |
27
| .attr | File attributes. |
28 4 Per Amundsen
| .sig | Returns "ok" if digital signed, else "none". |
29
| .version | Returns the file version, if any. |
30
| .path | The path directory. |
31
| .name | The filename without the file extension. |
32
| .ext | The file extension. |
33
| .pid | Returns the first process id started by this file. *(AdiIRC Only)* |
34 1 Per Amundsen
35
*Example*
36
37
<pre>
38
; Show AdiIRC.exe filesize
39
//echo -ag $lof($adiircexe).size
40
41
; Show explorer.exe digital signature
42
//echo -ag $lof(c:\windows\explorer.exe).sig
43
</pre>