aws / aws/aws-cli

aws-cli does not recognize glob patterns in command line

Open
#925 21 comments 28 reactions 0 assignees View on GitHub
feature-request p3 s3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

``` bash
$ aws s3 cp /home/ye/website_images/310PixelWidth_Products/00000000000*.jpg s3://mybucket/products/

Unknown options: /home/ye/website_images/310PixelWidth_Products/000000000001392439_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400395_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400499_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400505_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400510_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400512_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400544_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400545_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400593_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400594_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400595_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400596_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400618_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400764_1.jpg,s3://mybucket/products/
```

Even with the `--recursive` option.

``` bash
$ aws s3 cp --recursive /home/ye/website_images/310PixelWidth_Products/00000000000*.jpg s3://mybucket/products/

Unknown options: /home/ye/website_images/310PixelWidth_Products/000000000001392439_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400395_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400499_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400505_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400510_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400512_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400544_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400545_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400593_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400594_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400595_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400596_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400618_1.jpg,/home/ye/website_images/310PixelWidth_Products/000000000001400764_1.jpg,s3://mybucket/products/
(awscli)[magento@dam ~]$ aws s3 cp --recursive /home/ye/website_images/310PixelWidth_Products/0000000000013 s3://mybucket/products/
000000000001389251_1.jpg 000000000001391874_1.jpg 000000000001392439_1.jpg

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.