mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fs: Return errVolumeNotEmpty properly if path not empty. (#4794)
Refer #4770
This commit is contained in:
parent
d20cdac304
commit
b69aa9c4d0
@ -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…
Reference in New Issue
Block a user