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

fastwalk: don't clean the path argument to Walk on Windows #38

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

charlievieth
Copy link
Owner

On Windows don't attempt to clean the path argument to Walk since the existing clean logic (cleanRootPath) transforms paths like "C:" => "C:" which are not equivalent.

This logic only existed to make the joining of paths simpler and should probably be removed since we shouldn't be modifying user provided paths.

TODO: Investigate if anything relies on the current clean logic and remove it if nothing does.

Fixes: #37

On Windows don't attempt to clean the path argument to Walk since the
existing clean logic (cleanRootPath) transforms paths like "C:\" => "C:"
which are not equivalent.

This logic only existed to make the joining of paths simpler and should
probably be removed since we shouldn't be modifying user provided paths.

TODO: Investigate if anything relies on the current clean logic and
remove it if nothing does.

Fixes: #37
@charlievieth charlievieth merged commit aa71a4c into master Oct 25, 2024
11 checks passed
@charlievieth charlievieth deleted the cev/fix-clean-root branch October 25, 2024 14:25
@charlievieth
Copy link
Owner Author

Fixes: junegunn/fzf#4027

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.

windows: Error traversing the windows installed in the virtual machine
1 participant