gitlab.com/evatix-go/core@v1.3.55/chmodhelper/CreateDefaultPaths.go (about)

     1  package chmodhelper
     2  
     3  func CreateDirFilesWithRwxPermissions(
     4  	isRemoveAllDirBeforeCreate bool,
     5  	dirFilesWithRwxPermissions *[]*DirFilesWithRwxPermission,
     6  ) error {
     7  	if dirFilesWithRwxPermissions == nil || len(*dirFilesWithRwxPermissions) == 0 {
     8  		return nil
     9  	}
    10  
    11  	for _, pathCreate := range *dirFilesWithRwxPermissions {
    12  		err2 := CreateDirFilesWithRwxPermission(
    13  			isRemoveAllDirBeforeCreate,
    14  			pathCreate)
    15  
    16  		if err2 != nil {
    17  			return err2
    18  		}
    19  	}
    20  
    21  	return nil
    22  }