I have the following code snippet:
foreach (string file in Directory.GetFiles(sourcePath)) {
It gets files from a specific directory. Can directories be mapped using a template? For example:
c:\test\di*
will match all files in directories:
c:\test\dictionary\ c:\test\directory\ c:\test\dig\
I saw that you can pass a file filter to the GetFiles method, but this only applies to files, not directory names.
Abe miessler
source share