// formatFileMode formats the specified mode as os.FileMode value.
// It does not fail in case it cannot parse the mode as octal numeral
// and returns the specified input mode unaltered.
formatFileMode formats the specified mode as os.FileMode value.
It does not fail in case it cannot parse the mode as octal numeral
and returns the specified input mode unaltered.
// formatFileMode formats the specified mode as os . FileMode value . // It does not fail in case it cannot parse the mode as octal numeral // and returns the specified input mode unaltered .
func formatFileMode(mode string) string {
	fileMode, err := strconv.ParseUint(mode, 8, 32)
	if err == nil {
		mode = os.FileMode(fileMode).String()
	}
	return mode
}
func formatFileMode ( mode string ) string { fileMode , err := strconv . ParseUint ( mode , 8 , 32 ) if err == nil { mode = os . FileMode ( fileMode ) . String ( ) } return mode }
formatFileMode formats the specified mode as os.FileMode value.
formatFileMode formats the specified mode as os . FileMode value .