Several interfaces in the File-System module allow you to interrogate files for information. You can find out whether a file exists, what its name is, or which directory it resides in, and you can find the current properties of the file.
file-exists?Function
file-exists? file => exists?
file-exists checks the target of the link, and returns true if the target exists.
Function
file-properties file => properties
<explicit-key-collection>.
Sealed generic function
file-property file key => property
file-property-setter, page 168.
Function
file-type file => file-type
<file-type>. A given entity can either be a file, a directory, or a link to a file or directory.