Function fs_mistrust::format_access_bits

source ·
pub fn format_access_bits(bits: u32, c: char) -> String
Expand description

Convert the low 9 bits of bits into a unix-style string describing its access permission. Insert c between the ugo and perm.

For example, 0o022, ‘+’ becomes ‘g+w,o+w’.

Used for generating error messages.