aboutsummaryrefslogtreecommitdiff
path: root/weed/command/upload.go
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2020-07-20 15:35:47 +0800
committerGitHub <noreply@github.com>2020-07-20 15:35:47 +0800
commit5850bb733936399babbe2d77f4b27cac312e2798 (patch)
tree3966daffbb7b2633906f883e3047511772a4fdcf /weed/command/upload.go
parentb1616e93474246a624370ad18da98b8371c09ece (diff)
parentf90d2c93c9e34997a8e76aeefb438ec06b1cd093 (diff)
downloadseaweedfs-5850bb733936399babbe2d77f4b27cac312e2798.tar.xz
seaweedfs-5850bb733936399babbe2d77f4b27cac312e2798.zip
Merge pull request #2 from chrislusf/master
sync
Diffstat (limited to 'weed/command/upload.go')
-rw-r--r--weed/command/upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/upload.go b/weed/command/upload.go
index 358897aee..45b15535b 100644
--- a/weed/command/upload.go
+++ b/weed/command/upload.go
@@ -69,7 +69,7 @@ func runUpload(cmd *Command, args []string) bool {
if *upload.dir == "" {
return false
}
- filepath.Walk(*upload.dir, func(path string, info os.FileInfo, err error) error {
+ filepath.Walk(util.ResolvePath(*upload.dir), func(path string, info os.FileInfo, err error) error {
if err == nil {
if !info.IsDir() {
if *upload.include != "" {