file(3tcl) Tcl Built-In Commands file(3tcl) ______________________________________________________________________________ NAME file - SYNOPSIS file option name ?arg arg ...? ______________________________________________________________________________ DESCRIPTION Name (~)(filename )Option option : file atime name ?time? name time POSIX (fashion)(197011) Windows FAT file attributes name file attributes name ?option? file attributes name ?option value option value...? (flag): Unix -group ID-owner ID-permissions chmod(1) chmod(1) [ugo]?[[+-=][rwxst],[...]](: u+sgo-rw (sticky)) ls rwxrwxrwx ( 9 )(: rwxr-xr-t 01755) Windows -archive -hidden -longname-readonly -shortname (8.3)-system Macintosh -creator(Finder)-hidden-readonly -type file channels ?pattern? | | pattern| patternpattern | string match | file copy ?-force? ?--? source target file copy ?-force? ?--? source ?source ...? targetDir target source target targetDir source source targetDir -force -force (halt) -- -- - source file delete ?-force? ?--? pathname ?pathname ... ? pathname -force -force (halt) -- -- - pathname file dirname name name (component) name (element)"." ( Macintosh ":") name file dirname c:/ c:/. (complete) file dirname ~/src/foo.c ~/src file dirname ~ /home (or something similar). file executable name 10 file exists name name (lead to)()(privilege)1 0 file extension name name name name file isdirectory name name 1 0 file isfile name name 1 0 file join name ?name ...? name file join a b /foo bar /foo/bar. : Unix Windows / Macintosh : file lstat name varName lstat stat stat () name varName stat file mkdir dir ?dir ...? dir dir (halt) file mtime name ?time? nametime ( Unix touch) POSIX (fashion)(197011) file nativename name Windows exec Macintosh AppleScript file owned name name 1 0 file pathtype name absoluterelativevolumerelative name absolute name relative name volumerelative file readable name name 10 file readlink name name () name file rename ?-force? ?--? source target file rename ?-force? ?--? source ?source ...? targetDir source target target target source targetDir -force(halt) -- -- - source file rootname name name ".""." name name name file size name name file split name name name Unix file split /foo/~bar/baz / foo ./~bar baz file stat name varName name stat varName VarName : atimectimedevgidinomodemtimenlinksizetypeuid type stat stat type file type file tail name name name name file type name name filedirectorycharacterSpecial blockSpecialfifolink socket file volume Tcl MacintoshN.B.(?)Tcl UNIX "/" Windows ({a:/ c:/}) file writable name name 1 0 PORTABILITY ISSUES Unix SEE ALSO filename KEYWORDS attributes, copy files, delete files, directory, file, move files, name, rename files, stat [] [] 2001/06/21 Linux man : http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Tcl 8.3 file(3tcl)