From 9f16df736ef9117f7c819e1c55ae376372144a31 Mon Sep 17 00:00:00 2001 From: zzq09494 Date: Sat, 19 Mar 2022 09:15:42 +0800 Subject: [PATCH] fix-filer: calculation error of the method skipCheckParentDirEntry --- weed/server/filer_server_handlers_write_autochunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index e4f34443d..854b35f82 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -131,7 +131,7 @@ func isAppend(r *http.Request) bool { } func skipCheckParentDirEntry(r *http.Request) bool { - return r.URL.Query().Get("skipCheckParentDir") != "true" + return r.URL.Query().Get("skipCheckParentDir") == "true" } func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileName string, contentType string, so *operation.StorageOption, md5bytes []byte, fileChunks []*filer_pb.FileChunk, chunkOffset int64, content []byte) (filerResult *FilerPostResult, replyerr error) {