file attributes
Gives or sets the attributes of the platform of a file; not available in ztcl.
file attributes NAME ?OPTION ?VALUE ...??
Description
In Tcl, the attributes of the platform, such as -permissions on Unix or -hidden on Windows. In ztcl each call is an error.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| NAME | path | required | The path. |
Returns
An error in ztcl.
Examples
% set f [open n.txt w]; close $f
> catch {file attributes n.txt}
1
Errors
% file attributes n.txt
file attributes is not available
-errorcode NONE
Differences from Tcl
- Tcl 8.6.16 and 9.0.4 have the attributes of the platform (issue 687).
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