mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Add reliable RemoveAll to handle racy situations (#6227)
This commit is contained in:
committed by
Nitish Tiwari
parent
13fbb96736
commit
2dede2fdc2
@@ -64,7 +64,7 @@ func fsRemoveAll(ctx context.Context, dirPath string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = os.RemoveAll(dirPath); err != nil {
|
||||
if err = removeAll(dirPath); err != nil {
|
||||
if os.IsPermission(err) {
|
||||
logger.LogIf(ctx, errVolumeAccessDenied)
|
||||
return errVolumeAccessDenied
|
||||
|
||||
Reference in New Issue
Block a user