diff --git a/README.md b/README.md index ba5444e..afa4431 100755 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ ## 下载链接 -当前版本:v0.15.0-beta +当前版本:v0.16.0-beta -[Linux](https://github.com/tencentyun/coscli/releases/download/v0.15.0-beta/coscli-linux) +[Linux](https://github.com/tencentyun/coscli/releases/download/v0.16.0-beta/coscli-linux) -[Mac](https://github.com/tencentyun/coscli/releases/download/v0.15.0-beta/coscli-mac) +[Mac](https://github.com/tencentyun/coscli/releases/download/v0.16.0-beta/coscli-mac) -[Windows](https://github.com/tencentyun/coscli/releases/download/v0.15.0-beta/coscli-windows.exe) +[Windows](https://github.com/tencentyun/coscli/releases/download/v0.16.0-beta/coscli-windows.exe) ## 使用方法 diff --git a/cmd/root.go b/cmd/root.go index 9b00cd7..622c433 100755 --- a/cmd/root.go +++ b/cmd/root.go @@ -25,7 +25,7 @@ var rootCmd = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { _ = cmd.Help() }, - Version: "v0.15.0-beta", + Version: "v0.16.0-beta", } func Execute() { diff --git a/util/download.go b/util/download.go index 0b2bcef..d6fe653 100644 --- a/util/download.go +++ b/util/download.go @@ -52,7 +52,7 @@ func DownloadPathFixed(localPath string, cosPath string, isRecursive bool) (stri logger.Fatalln(err) return "", "", err } - localPath = filepath.Join(dirPath, localPath) + localPath = dirPath + string(filepath.Separator) + localPath } // 创建文件夹 diff --git a/util/upload.go b/util/upload.go index e70271a..ad6a477 100644 --- a/util/upload.go +++ b/util/upload.go @@ -33,7 +33,7 @@ func UploadPathFixed(localPath string, cosPath string) (string, string) { logger.Fatalln(err) os.Exit(1) } - localPath = filepath.Join(dirPath, localPath) + localPath = dirPath + string(filepath.Separator) + localPath } fileInfo, err := os.Stat(localPath)