delete: Use physical Dir() for proper prefix cleanup in Windows (#9297)
delete: Use physical Dir() for proper prefix cleanup in Windows (#9297)

In FS mode under Windows, removing an object will not automatically.
remove parent empty prefixes.

The reason is that path.Dir() was used, however filepath.Dir() is
more appropriate since filepath is physical (meaning it operates
on OS filesystem paths)

This is not caught because failure for Windows CI is not caught.
NitishT/minio,fwessels/minio,krisis/minio,harshavardhana/minio,fwessels/minio,fwessels/minio,aead/minio,krisis/minio,harshavardhana/minio,aead/minio,aead/minio,harshavardhana/minio,fwessels/minio,aead/minio,balamurugana/minio,donatello/minio,NitishT/minio,aead/minio,harshavardhana/minio,vadmeste/minio,harshavardhana/minio,aead/minio,harshavardhana/minio,harshavardhana/minio,balamurugana/minio,minio/minio,aead/minio,NitishT/minio,harshavardhana/minio,minio/minio,vadmeste/minio,NitishT/minio,donatello/minio,aead/minio