Resolves #2.
- Lower
MAX_TOP_FILES_PER_DIRfrom32to15and introduceMIN_CACHED_FILE_BYTES = 64 KiBinsrc/scanner/mod.rsso millions of tiny< 64 KBfiles are not persisted into SQLitetop_files. - Keep all
directoriestotals, file counts, and histograms exact (computed prior totop_filesfiltering). - Add
read_direct_files_liveand use it inhandle_directory(src/server/mod.rs) so/api/directoryshows live direct files (including small files) for the inspected directory, falling back to cachedtop_fileswhen unavailable. - Added test
scanner_excludes_tiny_files_from_top_files_while_preserving_totals.
Verified: cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, and cargo test (29 unit + 2 e2e) all pass.