Skip to content

fix: strip file:// scheme so dead-dir and dead-track scans work - #12

Merged
ccombe merged 1 commit into
masterfrom
fix/file-url-paths
Nov 23, 2026
Merged

ccombe merged 1 commit into
masterfrom
fix/file-url-paths

Conversation

@ccombe

@ccombe ccombe commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Root cause of the dead-directory scan never finding anything, confirmed from the user's report file:

library items: 24209, track dirs: 8612, roots: [], dirs visited: 0

foobar2000's metadb_handle::get_path() returns local files as file://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 made track_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.

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved (owner PR)

@ccombe
ccombe enabled auto-merge (squash) November 23, 2026 10:16
@ccombe
ccombe merged commit 9cbda06 into master Nov 23, 2026
9 checks passed
@ccombe
ccombe deleted the fix/file-url-paths branch November 23, 2026 10:17
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