file-type

[procedure] file-type fname/fd/port [chase?]

Scsh: returns one of block-special, char-special, directory, fifo, regular, socket or symlink. See also file-info.

[procedure] file-type filename &keyword follwo-link?

Gauche: returns one of regular, directory, character, block, fifo, symlink, or socket. See also sys-stat.