FileException Inconsistency?
Nick Treleaven
nick at geany.org
Mon May 11 10:36:42 UTC 2026
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.
More information about the Digitalmars-d-learn
mailing list