- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for isSysErrNotEmpty (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/xl-storage-errors_test.go
} if runtime.GOOS != globalWindowsOSName { pathErr = &os.PathError{Err: syscall.ENOTEMPTY} ok = isSysErrNotEmpty(pathErr) if !ok { t.Fatalf("Unexpected error expecting %s", syscall.ENOTEMPTY) } } else { pathErr = &os.PathError{Err: syscall.Errno(0x91)} ok = isSysErrNotEmpty(pathErr) if !ok { t.Fatal("Unexpected error expecting 0x91") } } if runtime.GOOS == globalWindowsOSName {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 1.7K bytes - Click Count (0) -
cmd/xl-storage-errors.go
return errors.Is(err, syscall.ELOOP) } // Check if the given error corresponds to ENOTEMPTY for unix, // EEXIST for solaris variants, // and ERROR_DIR_NOT_EMPTY for windows (directory not empty). func isSysErrNotEmpty(err error) bool { if errors.Is(err, syscall.ENOTEMPTY) { return true } if errors.Is(err, syscall.EEXIST) && runtime.GOOS == "solaris" { return true } var pathErr *os.PathError
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Mar 06 16:56:29 GMT 2023 - 3.8K bytes - Click Count (0) -
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
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Apr 22 17:49:30 GMT 2024 - 5.8K bytes - Click Count (0)