Version 2 of file exists

Updated 2003-10-03 00:56:33

file exists name

Returns 1 if file name exists and the current user has search privileges for the directories leading to it, 0 otherwise.


Q. What's the difference between file exists and file isfile?

A. file exists returns true (1) for all existing directories and regular files. file isfile returns true only for existing regular files.


See also:


Tcl syntax help - Category Command - Category Introspection