aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-10-30 10:40:04 -0700
committerGitHub <noreply@github.com>2020-10-30 10:40:04 -0700
commit9081ff8e65e60c6926e49c724fed20dfe1976d45 (patch)
treeed71d5d43557ccd4f89da2e660d953f048a820ee /weed/command
parentc057dd1f6413ae95264d63782a21692a2088919c (diff)
parent8a7f5eba995548de657ff82c5db8bd5b8f739c21 (diff)
downloadseaweedfs-9081ff8e65e60c6926e49c724fed20dfe1976d45.tar.xz
seaweedfs-9081ff8e65e60c6926e49c724fed20dfe1976d45.zip
Merge pull request #1584 from alloneinfo/master
修改 weed filer.copy 上传目录时文件名变子目录的问题
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/filer_copy.go2
1 files changed, 1 insertions, 1 deletions
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,