Never skip a local index error for a directory or symlink #285

Merged
clawbot merged 1 commits from fix-skip-errors-directory-index-error into next 2026-10-08 12:59:27 +02:00
1 Commits
Author SHA1 Message Date
sneak 91e4bf92ab Never skip a local index error for a directory or symlink (closes #284)
check / check (push) Waiting to run
Under --skip-errors, an error recording a directory or symlink in the
local index was skipped like an unreadable file. The snapshot completed
without the entry, and a restore did not recreate it.

processFileWithErrorHandling now records a directory or symlink itself
and returns any error, which stops the backup with or without the flag.
The skip sees only a regular file's errors, so countFailedFile no longer
checks for a directory.

The test injects the error with a SQLite trigger that refuses the
directory's files row.

Model: opus-5-5
2026-10-08 10:12:49 +00:00