Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MkdirAll (0.26 sec)

  1. cmd/config-dir.go

    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.
    		if osIsPermission(err) {
    			err = nil
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 3K bytes
    - Viewed (0)
Back to top