Skip to content

Commit

Permalink
Merge pull request #45 from tencentyun/dev/cp-fixed
Browse files Browse the repository at this point in the history
Bug fix for copying single file
  • Loading branch information
willppan committed Sep 21, 2023
2 parents 421bbc5 + e1da49e commit 1f0c10d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## 使用方法

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion util/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

// 创建文件夹
Expand Down
2 changes: 1 addition & 1 deletion util/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f0c10d

Please sign in to comment.