[Issue 8967] dirEntries throws when encountering a "long path" on windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 17 16:55:21 UTC 2022


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

Ate Eskola <Ajieskola at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |Ajieskola at gmail.com
         Resolution|---                         |INVALID

--- Comment #14 from Ate Eskola <Ajieskola at gmail.com> ---
Resolved as invalid, as requested from this forum post:
https://forum.dlang.org/thread/cqgrubkqocbcdxslvkfl@forum.dlang.org

Quoting the rationale here:

> The fix was to use an application manifest file and declare the application as being long path aware (see [another forum post](https://forum.dlang.org/thread/wpritqbjxkifcueotlgr@forum.dlang.org)). The issue should be closed IMO as dirEntries should throw an exception when your program encounters a long path while not being declared as long path aware (it would then match the behavior of std::filesystem:::recursive_directory_iterator when using Visual C++ which throw a runtime_error when it encounters a long path unless your program is declared to be long path aware in its manifest).

--


More information about the Digitalmars-d-bugs mailing list