fs: Return errVolumeNotEmpty properly if path not empty. (#4794)

Refer #4770
master
Harshavardhana 7 years ago committed by Dee Koder
parent d20cdac304
commit b69aa9c4d0
  1. 2
      cmd/fs-v1-helpers.go

@ -61,6 +61,8 @@ func fsRemoveAll(dirPath string) (err error) {
if err = removeAll(dirPath); err != nil {
if os.IsPermission(err) {
return traceError(errVolumeAccessDenied)
} else if isSysErrNotEmpty(err) {
return traceError(errVolumeNotEmpty)
}
return traceError(err)
}

Loading…
Cancel
Save