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

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