www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24564] New: std.file.DirEntry throws Exception instead of

https://issues.dlang.org/show_bug.cgi?id=24564

          Issue ID: 24564
           Summary: std.file.DirEntry throws Exception instead of
                    FileException
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: johanengelen weka.io

`_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`).

--
May 24