Files
SpotiFLAC-Mobile/lib/utils
zarzet 91408da173 fix(history): keep downloads whose storage cannot be checked
Startup maintenance removed a download from History, and so from the
Library, when its file looked missing on two launches. Dart's
File.exists() also answers false for a permission error and for a drive,
card or share that is not mounted, so downloads on an unplugged drive,
an ejected SD card, a sleeping NAS, or an Android phone without media
access were dropped in batches of 80 per launch while the files stayed
on disk.

Orphan checks now use storedFileState: a file counts as gone only when
the OS reports it absent and the nearest existing folder above it is not
a mount container (filesystem or drive root, /Volumes, /media, /mnt,
/storage). Permission errors stay unknown, and on Android a missing file
in shared storage stays unknown while the app has no media access.
Library cleanup gets the same storage check through fileExistenceByPath.
2026-11-07 14:36:41 +07:00
..