Exemple #1
0
        public void Visit(EntityDirect info)
        {
            List <IEntity> allFiles = info.GetItems().ToList();

            foreach (IEntity it in allFiles)
            {
                Visit(it);
            }
        }
Exemple #2
0
 private static IEnumerable <EntityZip> GetZipFiles(EntityDirect dir)
 {
     return(from item in dir.dirInfo.EnumerateFiles("*", SearchOption.TopDirectoryOnly)
            where (Path.GetExtension(item.FullName) == ".zip" || Path.GetExtension(item.FullName) == ".rar")
            select new EntityZip(item.FullName));
 }
Exemple #3
0
 private static IEnumerable <EntityDirect> GetDirectories(EntityDirect dir)
 {
     return(from item in dir.dirInfo.EnumerateDirectories("*", SearchOption.TopDirectoryOnly)
            select new EntityDirect(item));
 }
Exemple #4
0
 public void Visit(EntityDirect info)
 {
     return;
 }