18 implementations of GetDirectoryContents
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileProvider.cs (1)
29public virtual IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
40public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
23 public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestFileProvider.cs (1)
11public IDirectoryContents GetDirectoryContents(string subpath)
StaticContentProviderTests.cs (1)
55public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
288public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
40public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
29public virtual IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
CertificatePathWatcherTests.cs (2)
488IDirectoryContents IFileProvider.GetDirectoryContents(string subpath) => throw new NotSupportedException(); 536IDirectoryContents IFileProvider.GetDirectoryContents(string subpath)
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
157public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
442public IDirectoryContents GetDirectoryContents(string subpath) => _contents;
Microsoft.Extensions.FileProviders.Abstractions (1)
NullFileProvider.cs (1)
18public IDirectoryContents GetDirectoryContents(string subpath) => NotFoundDirectoryContents.Singleton;
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
64public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
137public IDirectoryContents GetDirectoryContents(string subpath)
ManifestEmbeddedFileProvider.cs (1)
83public IDirectoryContents GetDirectoryContents(string subpath)
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFileProvider.cs (1)
306public IDirectoryContents GetDirectoryContents(string subpath)
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
31public IDirectoryContents GetDirectoryContents(string subpath)
23 references to GetDirectoryContents
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
97foreach (var result in contentRoot.GetDirectoryContents(candidateDirectoryPath))
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
97foreach (var result in contentRoot.GetDirectoryContents(candidateDirectoryPath))
Microsoft.AspNetCore.Hosting.Tests (6)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (6)
667providerMock.Setup(p => p.GetDirectoryContents("")).Returns(new TestDirectoryContents(new[] { styles, js })); 668providerMock.Setup(p => p.GetDirectoryContents("js")).Returns(new TestDirectoryContents(new[] 689providerMock.Setup(p => p.GetDirectoryContents("")).Returns(new TestDirectoryContents(new[] { css, js })); 690providerMock.Setup(p => p.GetDirectoryContents("js")).Returns(new TestDirectoryContents(new[] 694providerMock.Setup(p => p.GetDirectoryContents("css")).Returns(new TestDirectoryContents(new[] 747providerMock.Setup(p => p.GetDirectoryContents("")).Returns(new TestDirectoryContents(new[] { otherHtml })
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
FileProviderRazorProjectFileSystem.cs (2)
43return EnumerateFiles(FileProvider.GetDirectoryContents(path), path, prefix: string.Empty); 55var subDirectory = FileProvider.GetDirectoryContents(JoinPath(basePath, relativePath));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
FileProviderGlobbingDirectory.cs (1)
68foreach (var fileInfo in _fileProvider.GetDirectoryContents(RelativePath))
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
GlobbingUrlBuilderTest.cs (3)
464fileProvider.Setup(fp => fp.GetDirectoryContents(string.Empty)) 484fileProviderMock.Setup(fp => fp.GetDirectoryContents(subPath)) 512fileProvider.Setup(fp => fp.GetDirectoryContents(It.IsAny<string>()))
ImageTagHelperTest.cs (1)
369mockFileProvider.Setup(fp => fp.GetDirectoryContents(It.IsAny<string>()))
LinkTagHelperTest.cs (1)
1179mockFileProvider.Setup(fp => fp.GetDirectoryContents(It.IsAny<string>()))
ScriptTagHelperTest.cs (1)
1146mockFileProvider.Setup(fp => fp.GetDirectoryContents(It.IsAny<string>()))
Microsoft.AspNetCore.StaticFiles (2)
DefaultFilesMiddleware.cs (1)
56var dirContents = _fileProvider.GetDirectoryContents(subpath.Value!);
DirectoryBrowserMiddleware.cs (1)
86contents = _fileProvider.GetDirectoryContents(subpath.Value!);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
74var directory = Source.FileProvider.GetDirectoryContents("/");
Microsoft.Extensions.FileProviders.Composite (3)
CompositeDirectoryContents.cs (3)
12/// Represents the result of a call composition of <see cref="IFileProvider.GetDirectoryContents(string)"/> 25/// <see cref="IFileProvider.GetDirectoryContents(string)"/>. 45IDirectoryContents directoryContents = fileProvider.GetDirectoryContents(_subPath);