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 linux <-> windows path relocation issue #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

minerharry
Copy link

sometimes paths which did not contain the given root dir still made it past line 72; when relocation was attempted, the path wasn't fundamentally changed, BUT in the case of posix/windows relocation, the forwardslashes were changed to backslash. For repeated relocation of multiple folders to different places, this meant all paths not matched by the first relocation were all set to have backslash separators, meaning they are permanently unrelocatable by the subsequent relocations, since they are still looking for backslashes. The conditional that was supposed to detect this was broken, I fixed it

sometimes paths which did not contain the given root dir still made it past line 72; when relocation was attempted, the path wasn't fundamentally changed, BUT in the case of posix/windows relocation, the forwardslashes were changed to backslash. For repeated relocation of multiple folders to different places, this meant all paths not matched by the first relocation were all set to have backslash separators, meaning they are permanently unrelocatable by the subsequent relocations, since they are still looking for backslashes. The conditional that was supposed to detect this was broken, I fixed it
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