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

Allow oc cp to Copy a Single File to a Directory #29334

Open
thekief opened this issue Nov 29, 2024 · 0 comments
Open

Allow oc cp to Copy a Single File to a Directory #29334

thekief opened this issue Nov 29, 2024 · 0 comments

Comments

@thekief
Copy link

thekief commented Nov 29, 2024

Tools similar to oc, such as adb, that allow to copy file from a remote, offer to copy single file without needing to specify a destination and allow to, e.g. just provide a target directory, such as ..

It would be a nice quality-of-life improvement to have something similar implemented.

Version

Client Version: 4.17.5
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Kubernetes Version: v1.27.15+6147456

Steps To Reproduce
  1. execute oc cp <pod name>:<path to a single file> .
Current Result
tar: Removing leading `/' from member names
error: open .: is a directory
Expected Result

The file is copied to the current directory.

Additional Information

n/a

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

1 participant