Skip to content

Fix the library folders test on Windows - #275

Merged
BartolomeoRusso9 merged 1 commit into
mainfrom
fix-windows-scan-dirs-test
Nov 11, 2026
Merged

BartolomeoRusso9 merged 1 commit into
mainfrom
fix-windows-scan-dirs-test

Conversation

@BartolomeoRusso9

Copy link
Copy Markdown
Collaborator

The test-windows job failed on main after 2.0.5: library_scan_dirs_from("~/Music") returns C:\Users\runneradmin/Music and the test compared it as a string against Path("~/Music").expanduser(), which uses backslashes. The folder is the same, so the test now compares paths.

Also: duplicates were checked before ~ was expanded, so ~/Music and ~/Music could both end up in the list. They are now checked after.

🤖 Generated with Claude Code

Compare the expanded ~ folder as a path: on Windows expanduser keeps the
"/" the user typed, so the string differed from Path.expanduser(). Also
drop duplicates after expanding ~, not before.
@BartolomeoRusso9
BartolomeoRusso9 merged commit 643fee8 into main Nov 11, 2026
8 checks passed
@BartolomeoRusso9
BartolomeoRusso9 deleted the fix-windows-scan-dirs-test branch November 11, 2026 20:09
@BartolomeoRusso9
BartolomeoRusso9 restored the fix-windows-scan-dirs-test branch November 11, 2026 20:09
@BartolomeoRusso9
BartolomeoRusso9 deleted the fix-windows-scan-dirs-test branch November 11, 2026 20:09
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