Skip to content

[Feature Request] Scan for missed files on service restart #239

Description

@Pixwell85

Overview

Problem

When the File Navigator service is disabled (or the app is killed), any files downloaded during that time are completely ignored. When the service is re-enabled, it only watches for new events going forward, it never catches up on what was missed.

This means that if I temporarily disable the service and download images, documents, APKs, etc., those files stay unsorted in the Downloads folder with no way to process them through File Navigator.

Proposed solution

On service restart, File Navigator could query the MediaStore for files added since the service was last stopped, and process them as if they had just arrived (show the usual move/sort notifications).

A possible implementation:

  1. Save a timestamp when the service stops.
  2. On service start, query MediaStore.Files with DATE_ADDED > lastStopTimestamp filtered to the monitored directories.
  3. Send the usual sorting notifications for each matched file.

Alternatively, a manual "Scan now" button in the app would also solve the problem.

Additional context

The app already has MANAGE_EXTERNAL_STORAGE permission and queries the MediaStore, so the building blocks seem to be in place. This would make File Navigator reliable even when the service isn't running 24/7.

Great app btw! This is the only feature I'm missing. Thank you for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions