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))); }
public bool DirectoryExists(string virtualPath) { return(_fileSystem.GetDirectoryEntry(ToFileSystemPath(virtualPath)) != null); }