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

cp -R option is confusing #1

Closed
disq opened this issue Mar 22, 2018 · 1 comment
Closed

cp -R option is confusing #1

disq opened this issue Mar 22, 2018 · 1 comment

Comments

@disq
Copy link
Contributor

disq commented Mar 22, 2018

cp command's -R option works on local files (as source) only. When downloading, if there's a wildcard it's always recursive so there's no real need for an -R option. Maybe add a dummy/no-op -R option to "from-remote" cp command?

Currently having the -R in an s3-sourced cp command fails with the confusing error message "File param resembles s3 object", as it parses the command as having a local source. (since -R is not an option for remote sourced files)

Another fix would be to reverse the parsing order so that arguments get parsed first, options later. Since s3 urls are expected to always start with s3:// scheme, it would select the correct command and fail with an "no such option" error message which is much clear.

@igungor
Copy link
Member

igungor commented Apr 14, 2020

Local copy support is dropped as of v1.0.0 release. -R flag is gone as well because of the above reason. It doesn't have any effect other than local->local copy operations.

@igungor igungor closed this as completed Apr 14, 2020
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

3 participants