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

ERROR: Parameter problem: Destination must be a directory and end with '/' when acting on a folder content or on multiple sources. #886

Closed
robwalch opened this issue Jun 27, 2017 · 3 comments
Assignees

Comments

@robwalch
Copy link

With v1.6.1 we could modify files using glob patterns. For example:

s3cmd modify -v --add-header "Content-Type: text/css" s3://website/assets/*.css

With v2.0.0 the above outputs an error:

"ERROR: Parameter problem: Destination must be a directory and end with '/' when acting on a folder content or on multiple sources."

I don't want to have to list out every file I want to modify and I don't want to apply the same changes to all files in a directory. It's a little unclear why this is being applied to a modify command.

@fviard fviard self-assigned this Jun 28, 2017
@fviard
Copy link
Contributor

fviard commented Jun 28, 2017

Thank you for the report, indeed it is a regression.
Some coded was added to prevent accidents when passing parameters to cp or mv.
As a side effect it did impact "modify" that is using the same base code.
I will fix that.

@fviard fviard closed this as completed in 377dc7a Jun 28, 2017
@fviard
Copy link
Contributor

fviard commented Jun 28, 2017

Should be fixed in master, It would be great if you can give it a try.

@robwalch
Copy link
Author

Thanks @fviard - appreciate the fix!

(I've never installed the tool from source. We've pinned our CI boxes to 1.6.1 for now. I only ran into this issue because of an accidental update to 2.0.0 on there that blocked us from being able to release!)

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

No branches or pull requests

2 participants