import std.algorithm: map;
import std.array: array;
import std.path: baseName;
auto names = Path("/tmp").iterdir().map!(p => baseName(p.str())).array;
// sort if needed for deterministic order Returns
A lazy range yielding
Path elements.Throws
If
this is not a directory.