Distinguish 404 from other errors in GetAllFilesInPath #8

Closed
opened 2026-05-01 19:23:37 +00:00 by rodin · 0 comments
Owner

Problem

GetAllFilesInPath falls back to treating the path as a file on any error from ListContents. This masks auth errors or transient failures, silently returning partial results.

Fix

Inspect error type (or HTTP status code) — only fall back to file fetch on 404. Propagate other errors.

## Problem `GetAllFilesInPath` falls back to treating the path as a file on *any* error from `ListContents`. This masks auth errors or transient failures, silently returning partial results. ## Fix Inspect error type (or HTTP status code) — only fall back to file fetch on 404. Propagate other errors.
rodin closed this issue 2026-05-02 17:07:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rodin/review-bot#8