Пример #1
0
        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();
        }
Пример #2
0
 private string GetAbsoluteDocumentRootPath(DocumentRoot root)
 {
     return Path.Combine(this.Settings.GetRepositoryPath(), root.ToPath());
 }