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

            foreach (IEntity it in allFiles)
            {
                Visit(it);
            }
        }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 private static IEnumerable <EntityDirect> GetDirectories(EntityDirect dir)
 {
     return(from item in dir.dirInfo.EnumerateDirectories("*", SearchOption.TopDirectoryOnly)
            select new EntityDirect(item));
 }
Exemplo n.º 4
0
 public void Visit(EntityDirect info)
 {
     return;
 }