Exemplo n.º 1
0
 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);
     }));
 }
Exemplo n.º 2
0
        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);
        }