Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fast s3 utility is a faster version of s3cmd's ls, get, and cp functions ideal f
# Installation

```bash
go get -u github.com/metaverse/fasts3
go install github.com/metaverse/fasts3@latest
```
This should install the binary under `$GOPATH/bin/`

Expand Down
4 changes: 2 additions & 2 deletions cmd/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"

"github.com/aws/aws-sdk-go/service/s3"
"github.com/spf13/cobra"
"github.com/metaverse/fasts3/s3wrapper"
"github.com/spf13/cobra"
)

// cpCmd represents the cp command
Expand All @@ -25,7 +25,7 @@ var cpCmd = &cobra.Command{
if err != nil {
log.Fatal(err)
}
err = Cp(s3Client, args, recursive, delimiter, searchDepth, keyRegex, flat)
err = Cp(GetS3Client(), args, recursive, delimiter, searchDepth, keyRegex, flat)
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ var rootCmd = &cobra.Command{
}

var (
s3Client *s3.S3

keyRegex string
delimiter string
searchDepth int
Expand Down