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

COPY command gives Access denied #55

Open
RoelandR opened this issue Apr 2, 2024 · 1 comment
Open

COPY command gives Access denied #55

RoelandR opened this issue Apr 2, 2024 · 1 comment

Comments

@RoelandR
Copy link

RoelandR commented Apr 2, 2024

When I copy a file to an already existing filename the COPY command responses with "Access denied"
It would be great if the response was "Overwrite existing ? (Yes/No)

@stevesims
Copy link
Contributor

Yes, currently files are protected from accidental overwriting. This is intentional

Having the system request permission to overwrite is a sensible enhancement that would be good to add. The main reason why it didn’t make it into the 2.2.x release is just that adding that functionality on top of all the existing changes to the copy command felt a step too far for now. It’s also slightly complicated in that the CLI command and the OS API for copy use the same code, and the API version would need to not include the confirm functionality

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