gitlab.com/evatix-go/core@v1.3.55/chmodhelper/ParseRwxOwnerGroupOtherToFileMode.go (about) 1 package chmodhelper 2 3 import ( 4 "os" 5 6 "gitlab.com/evatix-go/core/chmodhelper/chmodins" 7 "gitlab.com/evatix-go/core/errcore" 8 ) 9 10 func ParseRwxOwnerGroupOtherToFileMode( 11 rwxOwnerGroupOther *chmodins.RwxOwnerGroupOther, 12 ) (os.FileMode, error) { 13 varWrapper, err := ParseRwxOwnerGroupOtherToRwxVariableWrapper( 14 rwxOwnerGroupOther) 15 16 if err != nil { 17 return 0, errcore.MeaningfulErrorWithData( 18 errcore.FailedToConvertType, 19 "ParseRwxOwnerGroupOtherToFileMode", 20 err, 21 rwxOwnerGroupOther) 22 } 23 24 return varWrapper.ToCompileFixedPtr().ToFileMode(), nil 25 }