Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isSysErrNotEmpty (0.16 sec)

  1. cmd/os-reliable.go

    func reliableRemoveAll(dirPath string) (err error) {
    	i := 0
    	for {
    		// Removes all the directories and files.
    		if err = RemoveAll(dirPath); err != nil {
    			// 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    			}
    			if err = Remove(dstFilePath); err != nil {
    				if isSysErrNotEmpty(err) || isSysErrNotDir(err) {
    					return errFileAccessDenied
    				} else if isSysErrIO(err) {
    					return errFaultyDisk
    				}
    				return err
    			}
    		}
    	}
    
    	if err = renameAll(srcFilePath, dstFilePath, dstVolumeDir); err != nil {
    		if isSysErrNotEmpty(err) || isSysErrNotDir(err) {
    			return errFileAccessDenied
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top