public IEnumerable<string> ListDocumentNames(DocumentRoot root) { var path = Path.Combine(this.Settings.GetRepositoryPath(), root.ToPath()); return Directory.GetFiles(path, "*" + DocumentExtension) .Select(Path.GetFileName) .Select(f => f.Substring(0, f.Length - 3)) // strip file extension .ToList(); }
private string GetAbsoluteDocumentRootPath(DocumentRoot root) { return Path.Combine(this.Settings.GetRepositoryPath(), root.ToPath()); }