Distinguish 404 from other errors in GetAllFilesInPath #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.