Commit 0cf8979f by shenyizhong

* code review

1 parent d5df2bdc
Showing with 4 additions and 4 deletions
...@@ -59,19 +59,19 @@ func main() { ...@@ -59,19 +59,19 @@ func main() {
} }
if nodetree.StrOp == "upload" { if nodetree.StrOp == "upload" {
nodetree.StrSrc, err = filepath.Abs(nodetree.StrSrc) tmp, err := filepath.Abs(nodetree.StrSrc)
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
return return
} }
nodetree.StrSrc += "/" nodetree.StrSrc = tmp + "/"
} else if nodetree.StrOp == "download" { } else if nodetree.StrOp == "download" {
nodetree.StrDst, err = filepath.Abs(nodetree.StrDst) tmp, err := filepath.Abs(nodetree.StrDst)
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
return return
} }
nodetree.StrDst += "/" nodetree.StrDst = tmp + "/"
} }
if nodetree.StrHost == "" { if nodetree.StrHost == "" {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!