www.digitalmars.com         C & C++   DMDScript  

D - recls - Recursive File System Searching for D

As I mentioned in a post the other day, the recls library provides
platform-independent recursive searching, and provides several mappings.
I've just finished doing the first cut of the D mapping, which will appear
in March's instalment of my CUJ column. Naturally, it'll be available in
source/binary form before then.

I'm including an exe I've written with it. It does a search (defaults to
recursive) of a given pattern (defaults to "*.*") within a given directory
(defaults to "."), and prints out the various components and attributes of
all the matching entries. Run it with "-?" to get the usage, and go from

If enough people like this, I can get the library into a usable form within
a short space of time.

I plan to rewrite the whereis tool (http://synesis.com.au/r_systools.html;
also a sample in the STLSoft libraries, http://stlsoft.org/downloads.html)
in D using recls sometime soon. I think that should prove its usefulness. ;)

Matthew Wilson

STLSoft moderator and C++ monomaniac       (http://www.stlsoft.org)
Contributing editor, C/C++ Users Journal

"You can tell a Yorkshireman, but you can't tell him much!" -- Uncle Michael

Oct 10 2003