diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2018-07-21 20:14:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-21 20:14:38 -0700 |
| commit | 3423c1da18487e4dc3d77a024f9c0d5d3b7599cf (patch) | |
| tree | cc72caa73fadbdb81659c1f13bb87f33c502fbc1 /weed/command/filer_copy.go | |
| parent | c98df05ed0fc78e8585c6dd7d2ae317c7c42d9c3 (diff) | |
| parent | 49375d603177e4134d0cb4128324a2dd70521290 (diff) | |
| download | seaweedfs-3423c1da18487e4dc3d77a024f9c0d5d3b7599cf.tar.xz seaweedfs-3423c1da18487e4dc3d77a024f9c0d5d3b7599cf.zip | |
Merge pull request #693 from chrislusf/add_s3
Add "weed s3" to support S3 API
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 9937bc9d6..218abf645 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -8,16 +8,16 @@ import ( "path/filepath" "strings" + "context" "github.com/chrislusf/seaweedfs/weed/operation" + "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/security" - "path" + "github.com/chrislusf/seaweedfs/weed/util" + "io" "net/http" - "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" + "path" "strconv" - "io" "time" - "context" - "github.com/chrislusf/seaweedfs/weed/util" ) var ( @@ -77,7 +77,7 @@ func runCopy(cmd *Command, args []string) bool { return false } filerDestination := args[len(args)-1] - fileOrDirs := args[0: len(args)-1] + fileOrDirs := args[0 : len(args)-1] filerUrl, err := url.Parse(filerDestination) if err != nil { |
