S
Sea Sharper
Hi,
C#, from a FileSystemWatcher I would like to catch all files with a *.*
filter but then inside the event handler compare against a list of wildcards
(eg '*.abc;*.def')
Is there anywhere inside the Framework where I can do something like
Pattern x = new Pattern("*.abc");
if ( x.Matches(strFilename) )
{
//do something
}
Obviously I could just assume the file extensions were being used (and use
Path.GetExtension accordingly), but if a wildcard such as 'xyz??.*' is used
then I havent a hope.
Hope you can help, thanks.
Paul
C#, from a FileSystemWatcher I would like to catch all files with a *.*
filter but then inside the event handler compare against a list of wildcards
(eg '*.abc;*.def')
Is there anywhere inside the Framework where I can do something like
Pattern x = new Pattern("*.abc");
if ( x.Matches(strFilename) )
{
//do something
}
Obviously I could just assume the file extensions were being used (and use
Path.GetExtension accordingly), but if a wildcard such as 'xyz??.*' is used
then I havent a hope.
Hope you can help, thanks.
Paul