chickadee » posix-extras » stat-mode

stat-mode sprocedure

Like stat-permissions, but return only the file mode (permission) bits from the mode field.

(number->string (stat-mode s) 8)
; => "644"