Repository navigation
Find a Project VIC file whose name differs only in case or composition - #327
Merged
Merged
Conversation
#322 found each entry's file in one listing per folder, matched with os.path.normcase, which folds case only on Windows. On a Mac volume, and on FAT or exFAT anywhere, a name that differs from the disk's in case or in how an accented letter is composed is the same file, and Path.exists found it before #322; the listing called it missing. A name that matches a listed one only loosely is now asked of the filesystem. A name with no loose match costs nothing more: 16,000 entries read in the same 139 to 142 ms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Project VIC entry whose name differs from the file on disk only in case, or in how an accented letter is composed, was reported missing on macOS after #322. Before #322 it was found.
os.path.normcase, which folds case only on Windows. A name that matches a listed one loosely is now checked against the filesystem, which decides.test_a_name_in_another_case_takes_the_disks_spellingfailed on main on macOS and passes now. Four new tests fake the listing so every platform runs the fallback; three of them fail on main.🤖 Generated with Claude Code