Repository navigation
fix: strip file:// scheme so dead-dir and dead-track scans work - #12
Merged
Merged
Conversation
foobar2000 reports local tracks as file://G:\... — root derivation discarded every one as a stream (roots: []), and track_is_live never checked the disk. Normalize once at the source for roots, existence checks, keys and reports. Prepares 1.8.4.
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.
Root cause of the dead-directory scan never finding anything, confirmed from the user's report file:
foobar2000's
metadb_handle::get_path()returns local files asfile://G:\....common_scan_roots()skips any path containing://(meant to exclude streams), so every track dir was discarded and the walk never started. The same prefix madetrack_is_live()treat every local file as an unverifiable stream, silently disabling dead-track detection too.Fix: one pure
strip_file_scheme()helper, applied to all path consumers in scanner.cpp — track keys, existence checks, dead/invalid-tag report paths, and dead-dir scan roots. Streams (http://, etc.) are still skipped as before.Prepares 1.8.4 (patch). 112 checks pass locally.