I can't see, what I'am doing wrong. Can anyone help?
You can't do this only using a glob. The glob syntax used by dirEntries is described here:
http://dlang.org/phobos/std_path.html#globMatch You can do this with std.algorithm.filter: auto files = filter! q{a.name.startsWith("temp_") && !a.name.canFind('.')} (dirEntries("myDir", SpanMode.breadth)); foreach (de; files) writeln(de.name);
