List the files under a path by path, not by string prefix #250

Merged
clawbot merged 1 commits from fix-path-filter-prefix-match into next 2026-10-06 22:12:17 +02:00
1 Commits
Author SHA1 Message Date
sneak eca82738af List the files under a path by path, not by string prefix (closes #223)
check / check (push) Waiting to run
FileRepository.ListByPrefix matched with SQL LIKE: a plain string
prefix that ignores ASCII case and treats _ and % as wildcards.
Restoring /home/u/doc also restored doc2, DOC and doc.txt.bak, and a
backup counted the files of a longer sibling path as deleted. It is
now ListUnderPath, which returns the file at the path and every file
whose path starts with the path plus a slash, compared exactly. A
trailing slash is ignored, so "/" still lists every file.

Three tests relied on string-prefix matching and now name a full path
or call ListAll.

ListIDsWithChunksNotInUploadedBlobs keeps its LIKE: it only adds file
IDs the scan never looks up.

Model: opus-5-5
2026-10-06 19:17:19 +00:00