Пример #1
0
        public IEnumerable <string> ListFiles(string path)
        {
            var entry = _fileSystem.GetDirectoryEntry(path);

            if (entry == null)
            {
                throw new ArgumentException();
            }

            return(entry.Entries.Where(e => e is StubFileSystem.FileEntry).Select(e => Combine(path, e.Name)));
        }
Пример #2
0
 public bool DirectoryExists(string virtualPath)
 {
     return(_fileSystem.GetDirectoryEntry(ToFileSystemPath(virtualPath)) != null);
 }