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

Filepaths double separators handling #224

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

MiranDMC
Copy link
Collaborator

@MiranDMC MiranDMC commented Oct 1, 2024

In case of filepath with duplicated separators some of Windows APIs tend to set last error variable to "invalid path", but access intended file anyway.
Remove doubled separators during path normalization, so CLEO internal paths comparisons can not be fooled by cases like this.

@MiranDMC MiranDMC requested a review from x87 October 1, 2024 07:58
@MiranDMC MiranDMC merged commit b0a772e into master Oct 1, 2024
2 checks passed
@MiranDMC MiranDMC deleted the filepaths_double_separators_handling branch October 1, 2024 15:57
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.

2 participants