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

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