Skip to content

feat: async dead-directory scan with live console output - #13

Merged
ccombe merged 1 commit into
masterfrom
feat/async-dead-dir-scan
Nov 23, 2026
Merged

ccombe merged 1 commit into
masterfrom
feat/async-dead-dir-scan

Conversation

@ccombe

@ccombe ccombe commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Makes Find Dead/Empty Directories non-blocking:

  • Splits library_scan_roots() (main-thread-only library query) from the filesystem walk, which now runs on a detached worker thread.
  • Each discovered directory is streamed into the foobar2000 console via fb2k::inMainThread, so progress is visible while the UI stays responsive.
  • On completion the report is written and the popup now shows the report path and notes the full list is in the console.
  • Guarded with an atomic flag so repeated menu clicks during a scan are ignored.

Remove flow stays synchronous (destructive, main thread). Tests: 112 checks pass locally; version bumped to 1.8.5.

Split library root discovery (main-thread only) from the filesystem walk so
Find can run on a worker thread. Candidates stream into the foobar console as
found; the completion popup now shows the report path and notes the console
listing. Guarded against overlapping scans.

Prepares 1.8.5.
@ccombe
ccombe enabled auto-merge (squash) November 23, 2026 10:46

@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 merged commit 30c79c1 into master Nov 23, 2026
9 checks passed
@ccombe
ccombe deleted the feat/async-dead-dir-scan branch November 23, 2026 10:48
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