Skip to content
Snippets Groups Projects
VerifyChmodPathsDirect.go 419 B
Newer Older
  • Learn to ignore specific revisions
  • // VerifyChmodPathsDirect - expectedHyphenedRwx should be 10 chars example "-rwxrwxrwx"
    
    //
    // Multiple files verification error will be returned as once.
    func VerifyChmodPathsDirect(
    	expectedHyphenedRwx string,
    	isContinueOnError bool,
    	locations ...string,
    ) error {
    	if len(locations) == 0 {
    		return nil
    	}
    
    	return VerifyChmodPaths(
    		&locations,
    		expectedHyphenedRwx,
    		isContinueOnError)
    }