Exemplo n.º 1
0
        public List <DayStory> GetAllDays(string cat)
        {
            var sPath = ConfigurationManager.AppSettings["UploadUrl"] + cat + "\\";

            var stories  = new List <DayStory>();
            var dirs     = new DirectoryInfo(sPath);
            var comparer = new myReverserClass();

            DirectoryInfo[] fldrs = dirs.GetDirectories();
            Array.Sort(fldrs, comparer);
            foreach (var dirInfo in fldrs)
            {
                var b = new BasePath()
                {
                    Date = dirInfo.Name, Category = cat
                };
                var d = GetSingleDay(b);
                stories.Add(d);
            }
            return(stories);
        }
Exemplo n.º 2
0
        public List<DayStory> GetAllDays(string cat)
        {
            var sPath = ConfigurationManager.AppSettings["UploadUrl"]  + cat + "\\";

            var stories = new List<DayStory>();
            var dirs = new DirectoryInfo(sPath);
            var comparer = new myReverserClass();
            DirectoryInfo[] fldrs = dirs.GetDirectories();
            Array.Sort(fldrs, comparer);
            foreach (var dirInfo in fldrs) {
                var b = new BasePath(){Date = dirInfo.Name, Category = cat};
                var d = GetSingleDay(b);
                    stories.Add(d);
            }
            return stories;
        }