mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
allow prefix filtering for WalkDir to be optional (#10923)
This commit is contained in:
@@ -258,12 +258,12 @@ func (s *storageRESTServer) WalkDirHandler(w http.ResponseWriter, r *http.Reques
|
||||
vars := mux.Vars(r)
|
||||
volume := vars[storageRESTVolume]
|
||||
dirPath := vars[storageRESTDirPath]
|
||||
prefix := vars[storageRESTPrefixFilter]
|
||||
recursive, err := strconv.ParseBool(vars[storageRESTRecursive])
|
||||
if err != nil {
|
||||
s.writeErrorResponse(w, err)
|
||||
return
|
||||
}
|
||||
prefix := r.URL.Query().Get(storageRESTPrefixFilter)
|
||||
writer := streamHTTPResponse(w)
|
||||
writer.CloseWithError(s.storage.WalkDir(r.Context(), WalkDirOptions{
|
||||
Bucket: volume,
|
||||
|
||||
Reference in New Issue
Block a user