pub fn parse_mode(mode_str: &str) -> Result<u32, String>
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).