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

More robust crux-copy-file-preserve-attributes #100

Merged
merged 1 commit into from
Feb 23, 2024
Merged

More robust crux-copy-file-preserve-attributes #100

merged 1 commit into from
Feb 23, 2024

Conversation

fredericgiquel
Copy link
Contributor

crux-copy-file-preserve-attributes suffers from several problems:

  • A new buffer is always opened without correctly taking into account the value of universal argument
  • If filename is different, the new opened buffer contains the source file (destination file in same directory) or an empty buffer (destination file in other directory)
  • If the destination chosen by user is a complete path (with filename) in a non-existent directory, the function fails with error "Opening output file: No such file or directory"

So I rewrote the function in a more robust way to to limit mishandled cases.

@bbatsov bbatsov merged commit df476a7 into bbatsov:master Feb 23, 2024
@bbatsov
Copy link
Owner

bbatsov commented Feb 23, 2024

Thanks and sorry for the slow response!

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.

None yet

2 participants