You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create the dir if "makeDirs" is true or not definedifval, ok:=f.params["makedirs"].(bool); ok&&val||!ok {
d.makeDirs=trueiftest {
notes=append(notes, types.Snprintf("would create directory %s", name))
} else {
// TODO: Bug, this should check if the directory exists to correctly return that a directory altready exists and it is being skipped for creationerrCreate:=os.MkdirAll(name, 0o755)
notes=append(notes, types.Snprintf("creating directory %s", name))
iferrCreate!=nil {
return types.Result{
Succeeded: false, Failed: true, Notes: notes,
}, errCreate
}
}
}
}
// chown the directory to the named user
{
The text was updated successfully, but these errors were encountered:
https://api.github.com/gogrlx/grlx/blob/7ac33a5c0dc7b3900a3d9ee13c6389ac95a61dad/ingredients/file/fileDirectory.go#L58
The text was updated successfully, but these errors were encountered: