uiop:file-exists-p
(uiop:file-exists-p pathname)
Answers whether a file exists: the pathname when it does, nil when it does
not or when the pathname names a directory -- upstream UIOP's contract, so
libraries spelling the question the UIOP way (postmodern's execute-file, for
instance) need no shim. uiop:directory-exists-p
is the directory twin.
The pathname answered on success is the truename, as
probe-file's is: absolute, every symbolic link resolved. A link whose target is missing answers the link itself, as
probe-file does.
Backend support
Works on all four backends: one definition in rontolisp source over
probe-file, which tells a directory by its truename's trailing /.