- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for mkdirAllIgnorePerm (0.06 seconds)
-
cmd/config-dir.go
) // Get - returns current directory. func (dir *ConfigDir) Get() string { return dir.path } // Attempts to create all directories, ignores any permission denied errors. func mkdirAllIgnorePerm(path string) error { err := os.MkdirAll(path, 0o700) if err != nil { // It is possible in kubernetes like deployments this directory // is already mounted and is not writable, ignore any write errors.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 3K bytes - Click Count (0) -
cmd/common-main.go
return nil, fmt.Errorf("provided option cannot be empty") } // Disallow relative paths, figure out absolute paths. dirAbs, err := filepath.Abs(dir) if err != nil { return nil, err } err = mkdirAllIgnorePerm(dirAbs) if err != nil { return nil, fmt.Errorf("unable to create the directory `%s`: %w", dirAbs, err) } return &ConfigDir{path: dirAbs}, nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3)