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

Fix mv on windows #1457

Merged
merged 3 commits into from
Jan 27, 2017
Merged

Fix mv on windows #1457

merged 3 commits into from
Jan 27, 2017

Conversation

ferd
Copy link
Collaborator

@ferd ferd commented Jan 27, 2017

This is due to a stall a bunch of tests in appveyor and on windows in general.

Turns out a bunch of semantics for file moving were flat out wrong and different between windows and POSIX. This PR adds a bunch of tests for the expected behaviour that I roundtripped between a windows10 and a linux computer to make sure they agree on the behaviour and that it works the same.

There's some ugly stuff there, such as xcopy not handling long paths properly, forcing us to move to robocopy, which does not allow renaming as part of moving a file. This requires using temporary directories to rename files as an intermediary to avoid clobbering.

For directories this isn't a problem, but the mv behaviour has to be replicated still because it is not the default on windows with robocopy.

ferd added 3 commits January 27, 2017 11:54
Requires changing a bunch of arguments for xerocopy since it
does not allow to rename while copying.

Lots of tests added
to be roundtripped again to windows.
@talentdeficit talentdeficit merged commit ac8ee44 into erlang:master Jan 27, 2017
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.

3 participants