1
0
mirror of https://github.com/minio/minio.git synced 2025-04-05 12:20:34 -04:00

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

Refer 
This commit is contained in:
Harshavardhana 2017-08-12 19:24:20 -07:00 committed by Dee Koder
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)
}