Skip to content

🐛 file_content_hash returns empty string on errors (scan cache bug) #77

Closed

Description

@ajianaz

Description

file_content_hash() in src/commands/scan.rs:177-187 returns "" when std::fs::read() fails. Unreadable files will never be filtered by the incremental cache (same empty hash), causing them to be rescanned every time.

Suggested Fix

Return Option<String> and handle None upstream, or use a distinct sentinel value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions