Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support glob character in destination object? #724

Closed
dprestegard opened this issue Jun 12, 2024 · 4 comments
Closed

Support glob character in destination object? #724

dprestegard opened this issue Jun 12, 2024 · 4 comments

Comments

@dprestegard
Copy link

dprestegard commented Jun 12, 2024

Hello!

I'm using s5cmd for a use case where objects have pretty wacky names, including ? and *. Don't ask me why! :)

I use command files, and unfortunately if I'm trying to download these objects via command file I run into the following error:

target "/var/tmp/sample file name ?.wav" can not contain glob characters

Is there any way to make s5cmd relax this requirement so I can actually download these objects via a command file?

I already wrap source and destination paths in double quotes to handle spaces.

@dprestegard
Copy link
Author

Any word on this?

@igungor
Copy link
Member

igungor commented Dec 16, 2024

Hello,

We have --raw flag for cp subcommand. It may help your use case.

--raw                          disable the wildcard operations, useful with filenames that contains glob characters (default: false)

@igungor igungor closed this as completed Dec 16, 2024
@dprestegard
Copy link
Author

Thanks. I made a PR to mention this in the readme :) #781

@igungor
Copy link
Member

igungor commented Dec 17, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants