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

ArgumentTypeDefaultDescription
NAMEpathrequiredThe 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

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

See also