pub const SFTP_PERM_MASK: u32 = 0o7777;Expand description
SFTP v3 permission field mask: permission bits only (no S_IFMT file-type bits).
Unix st_mode carries type in the high bits (e.g. 0o100644 for a regular
file). The protocol permissions attribute must carry permission bits only
(0o7777 = mode + setuid/setgid/sticky). See G12 / G19.