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
filer: get directory metadata (#3833)
zemula05725aea6b6
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex 8c3d4bcd89..645a3fb444 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -107,9 +107,15 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)return}+ query := r.URL.Query()+if entry.IsDirectory() {if fs.option.DisableDirListing {- w.WriteHeader(http.StatusMethodNotAllowed)+ w.WriteHeader(http.StatusForbidden)+ return+ }+ if query.Get("metadata") == "true" {+ writeJsonQuiet(w, r, http.StatusOK, entry)return}if entry.Attr.Mime == "" {@@ -125,7 +131,6 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)return}- query := r.URL.Query()if query.Get("metadata") == "true" {if query.Get("resolveManifest") == "true" {if entry.Chunks, _, err = filer.ResolveChunkManifest(