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 copying file to dir #607

Merged
merged 6 commits into from
Apr 5, 2024
Merged

Allow copying file to dir #607

merged 6 commits into from
Apr 5, 2024

Conversation

vinc
Copy link
Owner

@vinc vinc commented Apr 2, 2024

We will now be able to do copy foo.txt /tmp to copy foo.txt to /tmp/foo.txt.

If the source is an absolute path the file will be copied into the dir, for example copy /usr/vinc/foo.txt /tmp will be copied to /tmp/foo.txt.

Copying a dir is not yet allowed, this PR will make it an error instead of a silent failure.

@vinc vinc marked this pull request as ready for review April 5, 2024 07:40
@vinc vinc merged commit 348b2b6 into trunk Apr 5, 2024
1 check passed
@vinc vinc deleted the feature/copy-to-dir branch April 5, 2024 07:42
@vinc vinc mentioned this pull request Jun 18, 2024
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

Successfully merging this pull request may close these issues.

1 participant