← Back to index
|
Original Bugzilla link
Bug 24564 – std.file.DirEntry throws Exception instead of FileException
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2024-05-24T18:24:29Z
Last change time
2024-05-24T22:51:04Z
Keywords
industry, pull
Assigned to
No Owner
Creator
johanengelen
Comments
Comment #0
by johanengelen — 2024-05-24T18:24:29Z
`_ensureStatDone` and `_ensureLStatDone` use `enforce`
https://github.com/dlang/phobos/blob/976dbf65566145e645f5963f76f16f7d9cb96dbf/std/file.d#L4061
(which throws an `Exception`) instead of using `cenforce` (used elsewhere in std.file, which throws `FileException`).
Comment #1
by dlang-bot — 2024-05-24T19:09:51Z
@ntrel created dlang/phobos pull request #9004 "Fix Bugzilla 24564 - std.file.DirEntry throws Exception instead of Fi…" fixing this issue: - Fix Bugzilla 24564 - std.file.DirEntry throws Exception instead of FileException
https://github.com/dlang/phobos/pull/9004
Comment #2
by dlang-bot — 2024-05-24T22:51:04Z
dlang/phobos pull request #9004 "Fix Bugzilla 24564 - std.file.DirEntry throws Exception instead of Fi…" was merged into master: - 44407884d464d60f980cb73b68a8024516ec7129 by Nick Treleaven: Fix Bugzilla 24564 - std.file.DirEntry throws Exception instead of FileException
https://github.com/dlang/phobos/pull/9004