file lstat
Puts the facts of a file in an array, for a link itself.
file lstat NAME VAR
Description
Sets the elements of VAR as file stat does. For a link it gives the facts of the link, and not of its target.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| NAME | path | required | The path. |
| VAR | array name | required | The array for the facts. |
Returns
An empty string.
Examples
% set f [open n.txt w]; close $f
> file lstat n.txt st
> set st(type)
file
Errors
% file lstat nope.txt
wrong # args: should be "file lstat name varName"
-errorcode NONE
Facts
- Capability
file. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1