Skip to main content

parse_mode

Function parse_mode 

Source
pub fn parse_mode(mode_str: &str) -> Result<u32, String>
Expand description

Parse a mode string (octal or symbolic like chmod) into a u32.

For install, symbolic modes are resolved relative to a base of 0 and without umask filtering (GNU behaviour).