Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for reliableMkdirAll (0.28 sec)

  1. cmd/os-reliable.go

    			// Retry only for the first retryable error.
    			if isSysErrNotEmpty(err) && i == 0 {
    				i++
    				continue
    			}
    		}
    		break
    	}
    	return err
    }
    
    // Wrapper functions to os.MkdirAll, which calls reliableMkdirAll
    // this is to ensure that if there is a racy parent directory
    // delete in between we can simply retry the operation.
    func mkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) {
    	if dirPath == "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
Back to top