StatFileSystemObject (file/dir)
ts
function StatFileSystemObject(what: string): DirListItem;Returns the stat information for the file or directory specified by what in the local file system. If the object does not exist, the returned DirListItem will be empty.
| Parameter | Type | Requirement | Explanation |
|---|---|---|---|
what | string | required | Path to a valid, existing file or directory in the local file system |
Example return value
json
{
"Name": "testfile.txt",
"Type": "FILE",
"Size": 1777,
"TimeStamp": 1683729626897 // use ToDate() to convert this to a JS Date object if needed
}