std.file listdir() should be able to list without recursion.
Steve Teale
steve.teale at britseyeview.com
Sat Jul 7 12:05:36 PDT 2007
Need listthisdir() or similar. It's quite common to put received files that have been processed correctly in a subdirectory called 'newfiles\ok', and those that failed in 'newfiles\error', and in that case you often don't want to know about files currently in the subdirectories.
char[][] listdir(char[] path, filter x) { return listdir(path, x, true); }
char[][] listthisdir(char[] path, filter x) { return listdir(path, x, false); }
char[][] listdir(char[] path, filter x, bool recurse)
{
...
}
More information about the Digitalmars-d-bugs
mailing list