Thread overview
dirEntries() does not do source files *.d
Aug 09, 2022
Energo Koder
Aug 09, 2022
Energo Koder
Aug 09, 2022
rikki cattermole
August 09, 2022

Dzień dobry!

dirEntries() does not do source files *.d .
I notice this when i test my app. Telme: Os this expected behavior?

Miłego dnia!
Energo Koder

August 09, 2022

On Tuesday, 9 August 2022 at 12:09:18 UTC, Energo Koder wrote:

Was:

>

dirEntries() does not do source files *.d .
Should be:

dirEntries() does not list source files *.d

August 10, 2022
Its working for me.

lpha@DESKTOP-RB97SA4 [/cygdrive/p/ProjectSidero/basic_memory/source/sidero/base/text/unicode$ rdmd --eval=$'import std; writeln(dirEntries(`.`, `*.d`, SpanMode.shallow));'     [".\\casefold.d", ".\\casing.d", ".\\comparison.d", ".\\composing.d", ".\\defs.d", ".\\normalization.d", ".\\readonly.d", ".\\wordbreak."]

Check what directory it is running in by called getcwd.

https://dlang.org/phobos/std_file.html#getcwd