public List <CFFile> GetFiles(string wildcard = null) { if (wildcard == null) { return(cfFiles); } return(cfFiles.FindAll( delegate(CFFile cff) { // MS Cabarc searches *ALWAYS* by file name without path, even if preserved! return Win32Wildcards.Match(Path.GetFileName(cff.FileName), wildcard); })); }
public CFFile GetFile(string FileName) { CFFile cff_found; cff_found = cfFiles.Find( delegate(CFFile cff) { // MS Cabarc searches *ALWAYS* by file name without path, even if preserved! return(Win32Wildcards.Match(Path.GetFileName(cff.FileName), FileName)); }); return(cff_found); }