diff --git a/zddc/internal/archive/index.go b/zddc/internal/archive/index.go index e3ba666..2c58743 100644 --- a/zddc/internal/archive/index.go +++ b/zddc/internal/archive/index.go @@ -120,8 +120,10 @@ func walkAndIndex(idx *Index, fsRoot, dirAbs, serverDir string) error { func indexTransmittalFolder(idx *Index, fsRoot, folderAbs, folderServerPath, date string) error { return filepath.WalkDir(folderAbs, func(path string, d os.DirEntry, err error) error { if err != nil { - // Log the error but continue indexing other files - _ = err // would log here: slog.Warn("walkdir error", "path", path, "err", err) + // Log and continue indexing the rest of the folder — a + // permission or FS error on one entry shouldn't abort the + // whole transmittal index or vanish without a trace. + slog.Warn("transmittal index: walkdir error", "path", path, "err", err) return nil } if d.IsDir() {