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