/// <summary> /// Returns a list of doc id's for the pages in the root of the passed directory /// </summary> /// <param name="dir"></param> /// <returns></returns> public static List <DocId> ListPages(string dir) { var repoDir = HttpContext.Current.Server.MapPath(Settings.RepositoryPath); var path = Path.Combine(repoDir, dir); return((from file in Directory.EnumerateFiles(path) where !Path.GetFileName(file).StartsWith(".") select DocId.ForPath(file.Replace(repoDir, ""))).ToList()); }