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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
GetAllFilesInPathfalls back to treating the path as a file on any error fromListContents. 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.