import std.file; void main(string[] args) { auto path = args[1]; if (!path.isDir()) { } foreach (DirEntry f; dirEntries(path, SpanMode.depth)) { } }