SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
revert "POSIX: should not delete if a directory is not empty"
chrislu7328962009f3
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.goindex 96ca4fcac3..b40addfe73 100644--- a/weed/filesys/dir.go+++ b/weed/filesys/dir.go@@ -491,8 +491,8 @@ func (dir *Dir) removeFolder(entry *filer_pb.Entry, req *fuse.RemoveRequest) errdirFullPath := dir.FullPath()glog.V(3).Infof("remove directory entry: %v", req)- ignoreRecursiveErr := false // ignore recursion error since the OS should manage it- err := filer_pb.Remove(dir.wfs, dirFullPath, req.Name, true, false, ignoreRecursiveErr, false, []int32{dir.wfs.signature})+ ignoreRecursiveErr := true // ignore recursion error since the OS should manage it+ err := filer_pb.Remove(dir.wfs, dirFullPath, req.Name, true, true, ignoreRecursiveErr, false, []int32{dir.wfs.signature})if err != nil {glog.V(0).Infof("remove %s/%s: %v", dirFullPath, req.Name, err)if strings.Contains(err.Error(), filer.MsgFailDelNonEmptyFolder) {