Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for reliableRemoveAll (0.17 sec)

  1. cmd/os-reliable.go

    )
    
    // Wrapper functions to os.RemoveAll, which calls reliableRemoveAll
    // this is to ensure that if there is a racy parent directory
    // create in between we can simply retry the operation.
    func removeAll(dirPath string) (err error) {
    	if dirPath == "" {
    		return errInvalidArgument
    	}
    
    	if err = checkPathLength(dirPath); err != nil {
    		return err
    	}
    
    	if err = reliableRemoveAll(dirPath); err != nil {
    		switch {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 5.4K bytes
    - Viewed (0)
Back to top