dirEntries() does not do source files *.d
rikki cattermole
rikki at cattermole.co.nz
Tue Aug 9 12:37:29 UTC 2022
Its working for me.
[alpha at 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
More information about the Digitalmars-d-learn
mailing list