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

kubectl cp from errors and does not download to the selected location (windows) #15

Open
hahn-kev opened this issue Feb 12, 2024 · 0 comments · May be fixed by #16
Open

kubectl cp from errors and does not download to the selected location (windows) #15

hahn-kev opened this issue Feb 12, 2024 · 0 comments · May be fixed by #16

Comments

@hahn-kev
Copy link

when I click the option, it prompts me to chose a location. After I do, it executes cd /D c:\download-location the problem is that cd /D gives the error Set-Location: A positional parameter cannot be found that accepts argument when it's run in powershell.

Testing it out, it looks like powershell does not need or support the /D flag. You can determine which terminal is used by checking the setting terminal.integrated.defaultProfile.windows, there are a lot of potential options. But you could probably just say, if the terminal is CMD or Command Prompt then you need to pass the /D flag, otherwise you can probably skip it.

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