From 9cc6575ab51ab29df5d45975451d8ef330d2df3f Mon Sep 17 00:00:00 2001 From: Kenny Date: Fri, 30 Oct 2020 18:16:49 +0800 Subject: [PATCH] Update filer_copy.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改 weed filer.copy 上传目录时文件名变子目录的问题 --- weed/command/filer_copy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 2295faa8a..f2b1e963e 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -219,7 +219,7 @@ func genFileCopyTask(fileOrDir string, destPath string, fileCopyTaskChan chan Fi fileCopyTaskChan <- FileCopyTask{ sourceLocation: fileOrDir, - destinationUrlPath: destPath+fi.Name(), + destinationUrlPath: destPath,//+fi.Name(), fileSize: fi.Size(), fileMode: fi.Mode(), uid: uid,