(c *cli.Context, uri string)
| 278 | } |
| 279 | |
| 280 | func parseDest(c *cli.Context, uri string) (bck cmn.Bck, pathSuffix string, err error) { |
| 281 | bck, pathSuffix, err = parseBckObjectURI(c, uri, true /*optional objName*/) |
| 282 | if err != nil { |
| 283 | return |
| 284 | } else if bck.IsHTTP() { |
| 285 | err = fmt.Errorf("http bucket is not supported as destination") |
| 286 | return |
| 287 | } |
| 288 | pathSuffix = strings.Trim(pathSuffix, "/") |
| 289 | return |
| 290 | } |
| 291 | |
| 292 | func parseBckURI(c *cli.Context, uri string, requireProviderInURI ...bool) (cmn.Bck, error) { |
| 293 | if isWebURL(uri) { |