- file-type FILE #!optional LINK ERRORprocedure
Returns the file-type for FILE, which should be a filename, a file-descriptor or a port object. If LINK is given and true, symbolic-links are not followed:
regular-file directory fifo socket symbolic-link character-device block-device
Note that not all types are supported on every platform. If ERROR is given and false, then file-type returns #f if the file does not exist; otherwise, it signals an error.