directory wildcard

Arne arne at linux.nu
Sat May 19 13:35:29 PDT 2012


On Saturday, 19 May 2012 at 03:46:32 UTC, Jay Norwood wrote:
> Here is a link to some code for the wildArgv single level 
> search that I'm using.
> https://github.com/jnorwood/file_utils
>
>
> This is roughly how I was using it, related to your example
>
> 	string[] argv;
> 	argv ~= r"c:\partial*";
> 	foreach( dirn; wildArgvs(argv[0..$])){
> 		string[] argv2 = null;
> 		argv2 ~= dirn ~ r"\path\*.d";
> 		foreach( filen; wildArgvs(argv2[0..$])){
>                    do something with filen
>                 }
>         }

Thanks for your help :)


More information about the Digitalmars-d-learn mailing list