Skip to main content

Module display

Module display 

Source
Expand description

Small, filesystem-neutral formatters used when showing entries to a person.

Functions§

decode_ostype
Render a Mac four-character OSType lossily: non-printable bytes become ..
format_size
Format a byte count as a short human-readable size (512 B, 1.5 MiB, …).
unix_mode_string
Render raw Unix mode bits as a 10-character permission string (e.g. drwxr-xr-x).