Skip to content

Commit

Permalink
add auth example
Browse files Browse the repository at this point in the history
  • Loading branch information
huangnauh committed Mar 22, 2024
1 parent 21cc5a3 commit 787f164
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ upx sync ./workspace /workspace
upx auth mybucket user password
```

```bash
upx --auth=auth-string put temp.file
```


## post

Expand Down
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ func (sess *Session) copyMove(srcPath, destPath, method string, force bool) erro
return err
}
if sourceFileInfo.IsDir {
return fmt.Errorf("not support copy dir, %s is dir", srcPath)
return fmt.Errorf("not support dir, %s is dir", srcPath)
}

// 将目标路径转化为绝对路径
Expand Down

0 comments on commit 787f164

Please sign in to comment.