On Monday, 11 May 2026 at 10:25:24 UTC, Nick Treleaven wrote:
`dirEntries` itself can throw:Throws: FileException if the path directory does not exist or read permission is denied.So you need to wrap the `dirEntries` call in try/catch too for when a subdirectory can't be read.
Sorry, actually that isn't needed so long as the initial path can be read. The original call of `scan` should catch that exception.
