savePath: state the live-photo caveat in content.ts and TODO.md
check / check (push) Successful in 1m47s

The comment on ContentCache.savePath, a new comment on
PhotoContent.savePath, and the TODO.md entry now say that for a live
photo not yet stored, savePath carries the title's extension, and the
backup may store the image under a different one.

Model: opus-5-5
This commit is contained in:
2026-10-01 15:49:53 +00:00
parent 824b2dbd76
commit af482f8eb4
2 changed files with 13 additions and 7 deletions
+7 -6
View File
@@ -27,12 +27,13 @@ declares one.
- 2026-10-01: A `Photo` has `savePath`, `isLocal`, `content()`, `exif()`,
`modifiedAt`, `hash` and `year` (issue 141). `savePath` is where
`lib.backup()` writes the original under the library's download directory, and
`isLocal` says whether the whole original is there; both look only at the
disk. `content()` returns the original's bytes and `exif()` the common EXIF
fields of a JPEG; both may download the original, and `exif()` downloads no
video. `PhotoRecord` gains `modifiedAt` and `hash`, and the JPEG EXIF scan
moved to `src/exif.ts`.
`lib.backup()` writes the original under the library's download directory; for
a live photo not yet stored, it carries the title's extension, and the backup
may store the image under a different one. `isLocal` says whether the whole
original is there. Both look only at the disk. `content()` returns the
original's bytes and `exif()` the common EXIF fields of a JPEG; both may
download the original, and `exif()` downloads no video. `PhotoRecord` gains
`modifiedAt` and `hash`, and the JPEG EXIF scan moved to `src/exif.ts`.
- 2026-09-29: The "Workflow" list at the top of this file now says to branch
from `next` and open a pull request that targets `next`, that the repository