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

Make FileUtils.mv work across filesystems on Windows #14320

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Feb 25, 2024

Fixes #7777.

Note that LibC.MoveFileExW does accept a MOVEFILE_COPY_ALLOWED flag that performs the same for files, but it doesn't work for directories, so there is little point in using the flag.

@straight-shoota straight-shoota added this to the 1.12.0 milestone Feb 25, 2024
@straight-shoota straight-shoota merged commit 54a3279 into crystal-lang:master Feb 26, 2024
56 of 57 checks passed
@HertzDevil HertzDevil deleted the bug/file-utils-mv-cross-device branch February 27, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

FileUtils.mv does not work like its Ruby counterpart
2 participants