mirror of
https://github.com/readest/readest.git
synced 2026-11-29 19:02:28 +00:00
Manage Cache holds back any Books/<hash>/ dir written in the last hour,
since an import may still own it before its library row is saved. A
book downloaded and then deleted on another device within the hour hit
the same rule, so the scan found only the books downloaded earlier and
the rest appeared on a later scan (2 orphaned files, then 42). A dir
whose book was deleted after the dir's last write has nothing imported
into it since, so it now counts as settled; a dir written after the
delete (a re-import in flight) is still held back.
Verified:
- New cache.test.ts case "reclaims a book deleted after its dir was
last written, however recent" fails on main ("expected [] to deeply
equal [ { base: 'Books', ... } ]") and passes with the fix; a second
case keeps a dir written after the delete held back.
- pnpm test (1190 files) and pnpm lint pass.
- Not run: Manage Cache on an iOS device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| readest-app | ||
| readest-calibre-plugin | ||
| readest-crosspoint-plugin | ||
| readest.koplugin | ||