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
fix when no files in filer
Chris Lu41aba0c02c54
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex eaa8015a61..554ce3fd1c 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -23,6 +23,10 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,entry, err := fs.filer.FindEntry(filer2.FullPath(path))if err != nil {+ if path == "/" {+ fs.listDirectoryHandler(w, r)+ return+ }glog.V(1).Infof("Not found %s: %v", path, err)w.WriteHeader(http.StatusNotFound)return