chickadee » posix-extras » stat-permissions

stat-permissions sprocedure

Permissions of stat vector S. You can test this value by performing bitwise operations on the result and the perm/... values from Unit posix.

For compatibility with file-permissions, this returns the entire mode field, which happens to include the file type. You can use stat-mode and stat-mode-type to get the file mode and type separately.