Skip to content

Commit

Permalink
fixed: windows path反人类问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gocloudcoder committed Apr 20, 2021
1 parent bc26b37 commit 58aadc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func putRemoteFile(path string, mac *qbox.Mac, bucket string, cfg storage.Config
}

func putLocalFile(path string, mac *qbox.Mac, bucket string, cfg storage.Config) {
path = strings.Replace(path, `\`, `/`, -1)
index := strings.LastIndexAny(path, "/")
var upload string
if index != -1 {
Expand Down

0 comments on commit 58aadc5

Please sign in to comment.