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: support get file entry
banjiaojuhao4c30934cd9b6
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex 8037b1d940..2c51931c14 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -21,7 +21,6 @@ import ("github.com/chrislusf/seaweedfs/weed/util")-// Validates the preconditions. Returns true if GET/HEAD operation should not proceed.// Preconditions supported are:// If-Modified-Since@@ -119,6 +118,11 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)return}+ if r.URL.Query().Has("metadata") {+ writeJsonQuiet(w, r, http.StatusOK, entry)+ return+ }+etag := filer.ETagEntry(entry)if checkPreconditions(w, r, entry) {return