589 references to Exists
AnalyzerRunner (2)
CodeRefactoringRunner.cs (1)
207else if (Directory.Exists(path))
DiagnosticAnalyzerRunner.cs (1)
291else if (Directory.Exists(path))
aspire (8)
Commands\InitCommand.cs (1)
484if (Directory.Exists(tempProjectDir))
Commands\UpdateCommand.cs (1)
479if (Directory.Exists(directory))
Configuration\ConfigurationService.cs (1)
35if (directory is not null && !Directory.Exists(directory))
DotNet\DotNetCliRunner.cs (2)
503if (!Directory.Exists(aspireCliPath)) 1215if (Directory.Exists(sdkInstallPath))
DotNet\DotNetSdkInstaller.cs (1)
137if (Directory.Exists(sdkInstallPath))
Projects\ProjectLocator.cs (1)
216if (Directory.Exists(projectFile.FullName))
Utils\CliDownloader.cs (1)
90if (Directory.Exists(tempDir))
Aspire.Cli.Tests (7)
DotNetSdkInstallerTests.cs (1)
123if (Directory.Exists(sdkInstallPath))
Utils\FileSystemHelperTests.cs (6)
27Assert.True(Directory.Exists(destDir)); 57Assert.True(Directory.Exists(destDir)); 59Assert.True(Directory.Exists(Path.Combine(destDir, "subdir1"))); 61Assert.True(Directory.Exists(Path.Combine(destDir, "subdir1", "subdir2"))); 81Assert.True(Directory.Exists(destDir)); 196Assert.True(Directory.Exists(currentDest));
Aspire.Dashboard.Tests (2)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
56if (Directory.Exists(probePath))
tests\Shared\Playwright\TestUtils.cs (1)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
Aspire.EndToEnd.Tests (11)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
56if (Directory.Exists(probePath))
tests\Shared\Playwright\TestUtils.cs (1)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemplatesTesting\AspireProject.cs (1)
60if (Directory.Exists(dir))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (6)
85if (Directory.Exists(sdkFromArtifactsPath)) 152if (string.IsNullOrEmpty(EnvironmentVariables.BuiltNuGetsPath) || !Directory.Exists(EnvironmentVariables.BuiltNuGetsPath)) 159if (!Directory.Exists(TestAssetsPath)) 213if (Directory.Exists(NuGetPackagesPath)) 220if (NuGetPackagesPath is not null && Directory.Exists(NuGetPackagesPath)) 236if (!Directory.Exists(TestRootPath))
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
64if (Directory.Exists(_customHiveDirectory))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
258if (!Directory.Exists(WorkingDirectory))
Aspire.Hosting (9)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
136if (Directory.Exists(fullPath))
ContainerResourceBuilderExtensions.cs (1)
1227if (!Directory.Exists(sourceFullPath) && !File.Exists(sourceFullPath))
Devcontainers\DevcontainerSettingsWriter.cs (2)
227if (Directory.Exists(vscodeServerPath)) 232if (Directory.Exists(vscodeInsidersServerPath))
IProjectMetadata.cs (1)
50if (Directory.Exists(path))
ProjectResourceBuilderExtensions.cs (1)
381var message = Directory.Exists(projectPath)
Publishing\ManifestPublisher.cs (1)
49if (!Directory.Exists(parentDirectory!.FullName))
Publishing\ManifestPublishingExtensions.cs (1)
56if (!Directory.Exists(parentDirectory!.FullName))
UserSecrets\UserSecretsManagerFactory.cs (1)
197if (!string.IsNullOrEmpty(directoryName) && !Directory.Exists(directoryName))
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
324if (Directory.Exists(path))
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
498var hasYarnBerryDir = Directory.Exists(Path.Combine(workingDirectory, ".yarn"));
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
801if (Directory.Exists(venvPath)) 1537if (Directory.Exists(venvPath))
Aspire.Hosting.Python.Tests (6)
AddPythonAppTests.cs (6)
582if (Directory.Exists(appDirPath)) 586if (Directory.Exists(appHostVenvPath)) 627if (Directory.Exists(appDirPath)) 631if (Directory.Exists(appHostVenvPath)) 700if (Directory.Exists(appDirPath)) 704if (Directory.Exists(appHostVenvPath))
Aspire.Hosting.Testing (2)
DistributedApplicationFactory.cs (2)
211if (!string.IsNullOrEmpty(appHostProjectPath) && Directory.Exists(appHostProjectPath)) 340if (appHostPath is null || !Directory.Exists(appHostPath))
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\MSBuildUtils.cs (1)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
Aspire.Hosting.Tests (8)
AspireStoreTests.cs (1)
17Assert.True(Directory.Exists(Path.GetDirectoryName(store.BasePath)));
Dashboard\DashboardLifecycleHookTests.cs (4)
273if (Directory.Exists(tempDir)) 345if (Directory.Exists(tempDir)) 417if (Directory.Exists(tempDir)) 487if (Directory.Exists(tempDir))
UserSecretsParameterDefaultTests.cs (1)
306if (!string.IsNullOrEmpty(directoryName) && !Directory.Exists(directoryName))
Utils\MSBuildUtils.cs (1)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
Utils\UnixSocketHelper.cs (1)
13if (!Directory.Exists(aspireCliPath))
Aspire.Templates.Tests (15)
NewUpAndBuildSupportProjectTemplatesTests.cs (1)
29if (Directory.Exists(topLevelDir))
TemplateTestsBase.cs (3)
72Assert.True(Directory.Exists(testProjectDir), $"Expected tests project at {testProjectDir}"); 316Assert.False(Directory.Exists(testProjectDirectory), "Expected no tests project to be created"); 321Assert.True(Directory.Exists(testProjectDirectory), $"Expected tests project at {testProjectDirectory}");
tests\Shared\Playwright\PlaywrightProvider.cs (1)
56if (Directory.Exists(probePath))
tests\Shared\Playwright\TestUtils.cs (1)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemplatesTesting\AspireProject.cs (1)
60if (Directory.Exists(dir))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (6)
85if (Directory.Exists(sdkFromArtifactsPath)) 152if (string.IsNullOrEmpty(EnvironmentVariables.BuiltNuGetsPath) || !Directory.Exists(EnvironmentVariables.BuiltNuGetsPath)) 159if (!Directory.Exists(TestAssetsPath)) 213if (Directory.Exists(NuGetPackagesPath)) 220if (NuGetPackagesPath is not null && Directory.Exists(NuGetPackagesPath)) 236if (!Directory.Exists(TestRootPath))
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
64if (Directory.Exists(_customHiveDirectory))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
258if (!Directory.Exists(WorkingDirectory))
csc (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
124if (Directory.Exists(loggingFilePath))
dotnet-dev-certs (9)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
552if (!string.IsNullOrEmpty(destinationDirectory) && !Directory.Exists(destinationDirectory))
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
106if (!Directory.Exists(directoryPath))
dotnet-svcutil-lib (15)
CommandProcessorOptions.cs (1)
1008if (!Directory.Exists(this.BootstrapPath.FullName))
FrameworkFork\Microsoft.CodeDom\Compiler\RedistVersionInfo.cs (2)
53if (Directory.Exists(dir)) 60if (dir != null && Directory.Exists(dir))
Metadata\MetadataDocumentSaver.cs (1)
315if (!Directory.Exists(dirPath))
Metadata\MetadataFileNameManager.cs (1)
189if (Directory.Exists(dirPath))
OutputPathHelper.cs (1)
72if (!Directory.Exists(directoryPath))
Shared\MSBuildProj.cs (7)
336if (System.IO.Directory.Exists(fullPath)) // IsDir? 340else if (Directory.Exists(Path.Combine(msbuildProj.DirectoryPath, fullPath))) 355if (!Directory.Exists(msbuildProj.DirectoryPath)) 402if (!Directory.Exists(projectDir)) 695if (!Directory.Exists(this.DirectoryPath)) 1002if (Directory.Exists(binFolder)) 1052if (_ownsDirectory && Directory.Exists(this.DirectoryPath) && !DebugUtils.KeepTemporaryDirs)
Shared\ProjectPropertyResolver.cs (1)
178if (Directory.Exists(sdkPath))
Shared\Utilities\PathHelper.cs (1)
249if (!string.IsNullOrEmpty(itemName) && !string.IsNullOrEmpty(workingDir) && Directory.Exists(workingDir))
dotnet-svcutil-lib.Tests (19)
E2ETests.cs (3)
25if (!Directory.Exists(this_TestGroupOutputDir)) 42Assert.True(Directory.Exists(this_TestGroupOutputDir), $"{nameof(this_TestGroupOutputDir)} is not initialized!"); 43Assert.True(Directory.Exists(this_TestGroupBaselinesDir), $"{nameof(this_TestGroupBaselinesDir)} is not initialized!");
FileUtil.cs (2)
18if (overwrite && Directory.Exists(destinationDirectory)) 43if (Directory.Exists(directoryPath))
MSBuildProjTests.cs (1)
20if (!Directory.Exists(_testDir))
TestInit.cs (12)
155Assert.True(Directory.Exists(g_RepositoryRoot), $"{nameof(g_RepositoryRoot)} is not initialized!"); 156Assert.True(Directory.Exists(g_TestCasesDir), $"{nameof(g_TestCasesDir)} is not initialized!"); 157Assert.True(Directory.Exists(g_TestResultsDir), $"{nameof(g_TestResultsDir)} is not initialized!"); 158Assert.True(Directory.Exists(g_TestBootstrapDir), $"{nameof(g_TestBootstrapDir)} is not initialized!"); 159Assert.True(Directory.Exists(g_TestOutputDir), $"{nameof(g_TestOutputDir)} is not initialized!"); 160Assert.True(Directory.Exists(g_BaselinesDir), $"{nameof(g_BaselinesDir)} is not initialized!"); 180if (!Directory.Exists(pkgPath) || !Directory.GetFiles(pkgPath, "dotnet-svcutil-lib*.nupkg").Any()) 277Assert.True(Directory.Exists(this_TestCaseOutputDir), $"{nameof(this_TestGroupOutputDir)} is not initialized!"); 278Assert.True(Directory.Exists(this_TestCaseBaselinesDir), $"{nameof(this_TestCaseBaselinesDir)} is not initialized!"); 537if (!Directory.Exists(Path.Combine(vstestDir, "TestCases"))) 540Assert.True(Directory.Exists(vstestDir), $"{nameof(vstestDir)} is not initialized!"); 556if (!Directory.Exists(binDir) || !Directory.GetFiles(binDir, "dotnet-svcutil-lib.*.nupkg").Any())
UnitTest.cs (1)
219if (!Directory.Exists(wsdlFilesDstDir))
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
28if (Directory.Exists(projectPath))
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
28if (Directory.Exists(projectPath))
FilesWebSite (1)
Controllers\DownloadFilesController.cs (1)
54if (!Directory.Exists(_testFilesPath))
GenerateAnalyzerNuspec (7)
Program.cs (7)
153if (Directory.Exists(assemblyFolder)) 228if (rulesetsDir.Length > 0 && Directory.Exists(rulesetsDir)) 239if (editorconfigsDir.Length > 0 && Directory.Exists(editorconfigsDir)) 251if (globalAnalyzerConfigsDir.Length > 0 && Directory.Exists(globalAnalyzerConfigsDir)) 266if (analyzerDocumentationFileDir.Length > 0 && Directory.Exists(analyzerDocumentationFileDir) && analyzerDocumentationFileName.Length > 0) 275if (analyzerSarifFileDir.Length > 0 && Directory.Exists(analyzerSarifFileDir) && analyzerSarifFileName.Length > 0) 284if (analyzerConfigurationFileDir.Length > 0 && Directory.Exists(analyzerConfigurationFileDir) && analyzerConfigurationFileName.Length > 0)
GenerateDocumentationAndConfigFiles (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
HelixTestRunner (2)
TestRunner.cs (2)
309if (Directory.Exists("artifacts/log")) 325if (Directory.Exists("TestResults"))
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
95if (Directory.Exists(LogFolderPath))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
27if (!Directory.Exists(path))
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
95if (Directory.Exists(LogFolderPath))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
27if (!Directory.Exists(path))
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
95if (Directory.Exists(LogFolderPath))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
27if (!Directory.Exists(path))
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
95if (Directory.Exists(LogFolderPath))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
27if (!Directory.Exists(path))
IIS.ShadowCopy.Tests (12)
ShadowCopyTests.cs (10)
219Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped"); 230Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "2")), "Expected 2 shadow copy directory"); 261Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped"); 272Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "11")), "Expected 11 shadow copy directory"); 278Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "1")), "Expected 1 shadow copy directory to be deleted"); 279Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "3")), "Expected 3 shadow copy directory to be deleted"); 304Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy"))); 306Assert.False(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy", "0", "ShadowCopy"))); 334Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy"))); 336Assert.False(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy", "0", "ShadowCopy")));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
95if (Directory.Exists(LogFolderPath))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
27if (!Directory.Exists(path))
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
95if (Directory.Exists(LogFolderPath))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
27if (!Directory.Exists(path))
illink (2)
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestCollectionFixture.cs (1)
24if (Directory.Exists(WellKnownPaths.TemplateSandboxOutputRoot))
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (1)
53if (Directory.Exists(gitPath) || File.Exists(gitPath))
Microsoft.Arcade.Common (1)
FileSystem.cs (1)
15public bool DirectoryExists(string path) => Directory.Exists(path);
Microsoft.AspNetCore.App.UnitTests (5)
AssertEx.cs (1)
12if (!Directory.Exists(path))
PackageTests.cs (3)
46if (Directory.Exists(_packageLayoutRoot)) 89if (Directory.Exists(packageAssembliesDir)) 120if (Directory.Exists(packageToolsDir))
TargetingPackTests.cs (1)
322var expectedAnalyzers = Directory.Exists(analyzersDir) ?
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
103if (Root == null || !Directory.Exists(Root) || _parent != null) 120if (!Directory.Exists(path))
UserJwtsTestFixture.cs (1)
110if (Directory.Exists(directory))
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
255 if (Directory.Exists(contentRootDir))
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
342 if (Directory.Exists(contentRootDir))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (9)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
Microsoft.AspNetCore.Hosting (6)
Internal\HostingEnvironmentExtensions.cs (6)
17if (!Directory.Exists(contentRootPath)) 31if (Directory.Exists(wwwroot)) 44if (!Directory.Exists(hostingEnvironment.WebRootPath)) 68if (!Directory.Exists(contentRootPath)) 82if (Directory.Exists(wwwroot)) 95if (!Directory.Exists(hostingEnvironment.WebRootPath))
Microsoft.AspNetCore.Http (1)
src\Http\WebUtilities\src\AspNetCoreTempDirectory.cs (1)
22if (!Directory.Exists(temp))
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
243if (!Directory.Exists(_path))
Microsoft.AspNetCore.HttpLogging.Tests (1)
Helpers.cs (1)
16if (Directory.Exists(path))
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
166return Directory.Exists(projectPath) ? projectPath : Path.Combine(FindHelixSlnFileDirectory(), "UI");
Microsoft.AspNetCore.InternalTesting (2)
AssemblyTestLog.cs (2)
275if (!Directory.Exists(dir)) 310Directory.Exists(_baseDirectory))
Microsoft.AspNetCore.InternalTesting.Tests (1)
AssemblyTestLogTests.cs (1)
375if (Directory.Exists(tempDir))
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
WebApplicationFactorySlnxTests.cs (2)
60Assert.True(Directory.Exists(environment.ContentRootPath)); 69if (Directory.Exists(_tempDirectory))
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Common\DeploymentParameters.cs (1)
57if (!Directory.Exists(applicationPath))
Common\DotNetCommands.cs (1)
64if (OperatingSystem.IsWindows() && Directory.Exists(archSpecificDir))
Deployers\ApplicationDeployer.cs (1)
46if (!Directory.Exists(DeploymentParameters.ApplicationPath))
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
281if (!Directory.Exists(destDirName))
Deployers\SelfHostDeployer.cs (1)
135Logger.LogInformation($"{Directory.Exists(workingDirectory)}");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
IISDeployer.cs (1)
461if (Directory.Exists(_configPath))
IISExpressDeployer.cs (2)
123if (!Directory.Exists(dllRoot)) 128if (!Directory.Exists(dllRoot))
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\CertificatePathWatcher.cs (1)
34dir => Directory.Exists(dir)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
213Assert.False(Directory.Exists(dir));
Microsoft.AspNetCore.Server.Kestrel.Tests (3)
KestrelConfigurationLoaderTests.cs (3)
812if (Directory.Exists(tempDir)) 847if (tempDir is not null && Directory.Exists(tempDir)) 1284if (Directory.Exists(tempDir))
Microsoft.AspNetCore.Shared.Tests (9)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
39if (Directory.Exists(absoluteRootPath))
Microsoft.AspNetCore.TestHost.Tests (1)
UseSolutionRelativeContentRootTests.cs (1)
193if (Directory.Exists(_tempDirectory))
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2218if (!Directory.Exists(wwwroot))
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
AutobahnTests.cs (1)
40if (Directory.Exists(outDir))
Microsoft.AspNetCore.WebUtilities (1)
AspNetCoreTempDirectory.cs (1)
22if (!Directory.Exists(temp))
Microsoft.AspNetCore.WebUtilities.Tests (1)
AspNetCoreTempDirectoryTests.cs (1)
13Assert.True(Directory.Exists(tempDirectory));
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
124if (Directory.Exists(loggingFilePath))
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
124if (Directory.Exists(loggingFilePath))
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (1)
IntegrationTests.cs (1)
20if (!Directory.Exists(target))
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\DotNetSdkTestBase.cs (1)
73=> dotnetDir != null && File.Exists(Path.Combine(dotnetDir, DotNetExeName)) && Directory.Exists(GetSdkPath(dotnetDir, DotNetSdkVersion));
Microsoft.Cci.Extensions (2)
HostEnvironment.cs (2)
696if (!Directory.Exists(path)) 728if (Directory.Exists(resolvedPath))
Microsoft.CodeAnalysis (3)
CommandLine\CommonCompiler.cs (1)
1166if (Directory.Exists(explicitGeneratedOutDir))
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (2)
109if (!Directory.Exists(BaseDirectory)) 147if (Directory.Exists(subDirectory))
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1649else if (!Directory.Exists(resolvedPath))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
68if (Directory.Exists(path))
Microsoft.CodeAnalysis.CSharp.Features (1)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
478if (Directory.Exists(resolvedProjectPath))
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorAnalyzerAssemblyResolver.cs (1)
92if (Directory.Exists(serviceHubCoreDirectory))
Microsoft.CodeAnalysis.Features (4)
Completion\FileSystemCompletionHelper.cs (1)
62return Directory.Exists(fullPath);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
166while (!IOUtilities.PerformIO(() => Directory.Exists(directoryToCreate)))
MetadataAsSource\MetadataAsSourceFileService.cs (1)
123if (Directory.Exists(rootDirectory))
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
232while (!Directory.Exists(tempFilePath))
Microsoft.CodeAnalysis.LanguageServer (3)
FileBasedPrograms\CanonicalMiscFilesProjectLoader.cs (1)
376if (Directory.Exists(canonicalTempDirectory))
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (2)
44if (Directory.Exists(watchedDirectory.Path)) 105if (Directory.Exists(directoryPath))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
309if (!Directory.Exists(logDirectoryPath))
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (3)
188if (Directory.Exists(directory)) 433if (!Directory.Exists(ShadowCopyDirectory)) 513if (File.Exists(dir) || Directory.Exists(dir))
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
MetadataShadowCopyProviderTests.cs (2)
49Assert.False(Directory.Exists(_provider.ShadowCopyDirectory), "Shadow copy directory should have been deleted"); 148Assert.True(Directory.Exists(scDir));
Microsoft.CodeAnalysis.Test.Utilities (2)
FX\DirectoryHelper.cs (1)
21if (!Directory.Exists(path))
TempFiles\DisposableDirectory.cs (1)
21if (Path != null && Directory.Exists(Path))
Microsoft.CodeAnalysis.UnitTests (1)
ShadowCopyAnalyzerPathResolverTests.cs (1)
46Assert.False(Directory.Exists(PathResolver.ShadowDirectory));
Microsoft.CodeAnalysis.Workspaces (4)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (2)
109if (!Directory.Exists(BaseDirectory)) 147if (Directory.Exists(subDirectory))
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
161if (Directory.Exists(directory))
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (1)
34if (!Directory.Exists(this.DatabaseDirectory))
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.cs (1)
136if (Directory.Exists(solutionDirectory))
MSBuild\MSBuildWorkspace.cs (1)
496if (!Directory.Exists(dir))
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (2)
100if (Directory.Exists(DefaultMonoLibPath)) 121s_monoLibDirPath = Directory.Exists(monoLibDirPath)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Rpc\Contracts\MonoMSBuildDiscovery.cs (2)
100if (Directory.Exists(DefaultMonoLibPath)) 121s_monoLibDirPath = Directory.Exists(monoLibDirPath)
Microsoft.DotNet.Arcade.Sdk (1)
src\LocateDotNet.cs (1)
73if (dotNetDir == null || !Directory.Exists(Path.Combine(dotNetDir, "sdk", sdkVersion)))
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestProjectFixture.cs (1)
56if (Directory.Exists(pkgRoot))
Microsoft.DotNet.Build.Tasks.Feed (5)
src\PublishArtifactsInManifestBase.cs (4)
819if (Directory.Exists(pdbArtifactsBasePath)) 1823if (!Directory.Exists(temporaryLocation)) 1837if (Directory.Exists(temporaryLocation)) 1859if (Directory.Exists(temporaryLocation))
src\PublishBuildToMaestro.cs (1)
109if (!Directory.Exists(ManifestsPath) && !IsAssetlessBuild)
Microsoft.DotNet.Build.Tasks.Feed.Tests (2)
PublishToSymbolServerTest.cs (2)
33Assert.True(Directory.Exists(path)); 35Assert.False(Directory.Exists(path));
Microsoft.DotNet.Build.Tasks.Installers (7)
src\CreateWixBuildWixpack.cs (3)
103if (Directory.Exists(WixpackWorkingDir)) 153if (!Directory.Exists(OutputFolder)) 172if (!Directory.Exists(fullSourceDir))
src\CreateWixCommandPackageDropBase.cs (4)
56if (!Directory.Exists(packageDropOutputFolder)) 72if(!Directory.Exists(OutputFolder)) 125if(!Directory.Exists(packageDropOutputFolder)) 326if (!Directory.Exists(newFolder))
Microsoft.DotNet.Build.Tasks.Packaging (8)
GenerateNuSpec.cs (1)
120if (!String.IsNullOrEmpty(directory) && !Directory.Exists(directory))
GenerateRuntimeDependencies.cs (1)
139if (!String.IsNullOrEmpty(destRuntimeFileDir) && !Directory.Exists(destRuntimeFileDir))
HarvestPackage.cs (2)
474if (Directory.Exists(candidateFolder)) 482if (Directory.Exists(candidateFolder))
NuGetPack.cs (2)
155if (!Directory.Exists(OutputDirectory)) 303if (!Directory.Exists(directory))
PackageIndex.cs (1)
79if (!String.IsNullOrEmpty(directory) && !Directory.Exists(directory))
PackageReport.cs (1)
35if (!Directory.Exists(directory))
Microsoft.DotNet.Build.Tasks.Packaging.Tests (2)
HarvestPackageTests.cs (2)
73if (Directory.Exists(packageFolder) || Directory.Exists(packageFolderLower))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
68if (!Directory.Exists(InsertionDirectory))
Microsoft.DotNet.Build.Tasks.Workloads (2)
Utils.cs (1)
190if (Directory.Exists(path))
WorkloadSetPackage.wix.cs (1)
102if (!Directory.Exists(dataDirectory))
Microsoft.DotNet.Build.Tasks.Workloads.Tests (3)
CreateVisualStudioWorkloadSetTests.cs (1)
24if (Directory.Exists(baseIntermediateOutputPath))
CreateVisualStudioWorkloadTests.cs (2)
28if (Directory.Exists(baseIntermediateOutputPath)) 164if (Directory.Exists(baseIntermediateOutputPath))
Microsoft.DotNet.GenAPI (2)
GenAPITask.cs (2)
199bool loopPerAssembly = Directory.Exists(OutputPath); 288if (Directory.Exists(outFilePath) && !string.IsNullOrEmpty(filename))
Microsoft.DotNet.Helix.Sdk (1)
SendHelixJob.cs (1)
512if (Directory.Exists(path))
Microsoft.DotNet.Internal.SymbolHelper (3)
SymbolUploadHelper.cs (2)
167if (_shouldConvertPdbs && !Directory.Exists(convertedFolder)) 404while (Directory.Exists(tempDir) || File.Exists(tempDir))
SymbolUploadHelperFactory.cs (1)
48if (Directory.Exists(installDirectory))
Microsoft.DotNet.MacOsPkg.Core (4)
AppBundle.cs (2)
23if (Directory.Exists(path)) 28bool containsAppBundleContents = Directory.Exists(Path.Combine(path, "Contents")) &&
MacOsPkgCore.cs (1)
57if (!Directory.Exists(srcPath))
Utilities.cs (1)
25if (Directory.Exists(path))
Microsoft.DotNet.MacOsPkg.Tests (2)
UnpackPackTests.cs (2)
179if (Directory.Exists(path)) 195Directory.Exists(dstPath).Should().BeTrue();
Microsoft.DotNet.Open.Api.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
103if (Root == null || !Directory.Exists(Root) || _parent != null) 120if (!Directory.Exists(path))
Microsoft.DotNet.PackageTesting (2)
VerifyClosure.cs (1)
80if (Directory.Exists(path))
VerifyTypes.cs (1)
82if (Directory.Exists(path))
Microsoft.DotNet.SetupNugetSources.Tests (7)
BoundaryConditionTests.cs (1)
29if (Directory.Exists(_testOutputDirectory))
CredentialHandlingTests.cs (1)
29if (Directory.Exists(_testOutputDirectory))
FeedEnablingTests.cs (1)
28if (Directory.Exists(_testOutputDirectory))
InternalFeedAdditionTests.cs (1)
29if (Directory.Exists(_testOutputDirectory))
NoChangeScenarioTests.cs (1)
29if (Directory.Exists(_testOutputDirectory))
SetupNugetSourcesFixture.cs (2)
22if (!Directory.Exists(scaffoldRoot)) 54if (Directory.Exists(RepoRoot))
Microsoft.DotNet.SharedFramework.Sdk (2)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
80if (Directory.Exists(path))
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
82if (Directory.Exists(path))
Microsoft.DotNet.SignCheckLibrary (6)
Logging\FileLogger.cs (3)
41if (!Directory.Exists(messageFile)) 50if (!Directory.Exists(errorFile)) 60if (!Directory.Exists(resultsFile))
Verification\FileVerifier.cs (1)
225if (Directory.Exists(path))
Verification\LZMAUtils.cs (1)
21if (!Directory.Exists(destinationDir))
Verification\PkgVerifier.cs (1)
60if (Directory.Exists(extractionPath))
Microsoft.DotNet.SignCheckTask (4)
src\SignCheck.cs (4)
180if (!Directory.Exists(_appData)) 241if (Directory.Exists(fileSearchPath)) 262if (Directory.Exists(inputFile)) 419if (!Directory.Exists(Options.ExclusionsOutput))
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (2)
411if (!Directory.Exists(wixToolsPath)) 417if (!Directory.Exists(workingDirectory))
src\SignToolTask.cs (2)
234if(Wix3ToolsPath != null && !Directory.Exists(Wix3ToolsPath)) 238if(WixToolsPath != null && !Directory.Exists(WixToolsPath))
src\ZipData.cs (2)
347if (Directory.Exists(extractDir)) 399if (Directory.Exists(extractDir))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\WriteBuildOutputProps.cs (1)
68.Where(Directory.Exists)
Microsoft.DotNet.Tar (1)
Program.cs (1)
33else if (Directory.Exists(srcPath))
Microsoft.DotNet.VersionTools.Cli (1)
FileSystemProxy.cs (1)
12return Directory.Exists(path);
Microsoft.Extensions.AI.Evaluation.Console (1)
Commands\ReportCommand.cs (1)
121if (outputPath is not null && !Directory.Exists(outputPath))
Microsoft.Extensions.AI.Templates.Tests (2)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestCollectionFixture.cs (1)
24if (Directory.Exists(WellKnownPaths.TemplateSandboxOutputRoot))
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (1)
53if (Directory.Exists(gitPath) || File.Exists(gitPath))
Microsoft.Extensions.ApiDescription.Client.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
103if (Root == null || !Directory.Exists(Root) || _parent != null) 120if (!Directory.Exists(path))
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
103if (Root == null || !Directory.Exists(Root) || _parent != null) 120if (!Directory.Exists(path))
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationSource.cs (2)
81while (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory)) 86if (Directory.Exists(directory))
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationBuilderExtensions.cs (1)
50if (!optional || Directory.Exists(directoryPath))
Microsoft.Extensions.Configuration.UserSecrets (1)
UserSecretsConfigurationExtensions.cs (1)
183PhysicalFileProvider? fileProvider = Directory.Exists(directoryPath)
Microsoft.Extensions.DependencyModel (1)
DirectoryWrapper.cs (1)
13return Directory.Exists(path);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\TestResources.cs (1)
50if (!Directory.Exists(directoryName))
Microsoft.Extensions.FileProviders.Physical (3)
PhysicalFileProvider.cs (2)
64if (!Directory.Exists(Root)) 325if (fullPath == null || !Directory.Exists(fullPath))
PhysicalFilesWatcher.cs (1)
283if (Directory.Exists(e.FullPath))
Microsoft.Extensions.SecretManager.Tools.Tests (3)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
103if (Root == null || !Directory.Exists(Root) || _parent != null) 120if (!Directory.Exists(path))
UserSecretsTestFixture.cs (1)
110if (Directory.Exists(directory))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
55string[] files = Directory.Exists(inputFiles)
Microsoft.Maui (1)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
65 if (!Directory.Exists(rootPath))
Microsoft.Maui.Resizetizer (1)
TizenSplashUpdater.cs (1)
32 if (Directory.Exists(splashFullPath))
Microsoft.ML.AutoML (1)
API\AutoMLExperimentExtension.cs (1)
307if (!Directory.Exists(folder))
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
177if (!Directory.Exists(outPutBaseDir))
Microsoft.ML.Core (6)
ComponentModel\AssemblyLoadingUtils.cs (1)
190if (!Directory.Exists(dir))
Data\Repository.cs (1)
129while (path is null || Directory.Exists(path))
Utilities\PathUtils.cs (1)
131if (Directory.Exists(folder))
Utilities\ResourceManagerUtils.cs (2)
211if (!Directory.Exists(appDataBaseDir) && string.IsNullOrEmpty(envDir)) 231if (!Directory.Exists(absDir))
Utilities\Stream.cs (1)
865if (!Directory.Exists(dir))
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
111if (Directory.Exists(imageFolder))
Microsoft.ML.SamplesUtils (3)
SamplesDatasetUtils.cs (3)
27while (!Directory.Exists(Path.Combine(directory, ".git")) && directory != null) 176if (!Directory.Exists(path)) 180if (!Directory.Exists(varPath))
Microsoft.ML.Sweeper (1)
ConfigRunner.cs (1)
138if (!Directory.Exists(folderName))
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
291if (Directory.Exists(folder)) 404env.CheckUserArg(Directory.Exists(modelPath), nameof(modelPath));
Microsoft.ML.TensorFlow.Tests (4)
TensorflowTests.cs (4)
40if (Directory.Exists(parentWorkspacePath)) 767if (Directory.Exists(varDir)) 1449if (Directory.Exists(workspacePath) && File.Exists(Path.Combine(workspacePath, trainSetBottleneckCachedValuesFileName)) 1960if (!Directory.Exists(Path.Combine(imagesDownloadFolder, filenameAlias)))
Microsoft.ML.TestFramework (1)
BaseTestBaseline.cs (1)
95Contracts.Check(Directory.Exists(baselineRootDir));
Microsoft.ML.TestFrameworkCommon (1)
TestCommon.cs (1)
76while (!Directory.Exists(Path.Combine(directory, ".git")) && directory != null)
Microsoft.ML.Vision (3)
ImageClassificationTrainer.cs (3)
545if (!Directory.Exists(_resourcePath)) 659if (!Directory.Exists(_options.WorkspacePath)) 1134if (_cleanupWorkspace && Directory.Exists(_options.WorkspacePath))
Microsoft.VisualBasic.Core (14)
Microsoft\VisualBasic\FileIO\FileSystem.vb (13)
82Return IO.Directory.Exists(directory) 673If Not IO.Directory.Exists(directory) Then 910If Not IO.Directory.Exists(SourceDirectoryFullPath) Then 970If operation = CopyOrMove.Move And Not IO.Directory.Exists(targetDirectoryPath) And 987Debug.Assert(IO.Directory.Exists(targetDirectoryPath), "Should be able to create Target Directory") 1019If Not IO.Directory.Exists(SourceDirectoryNode.TargetPath) Then 1032Debug.Assert(IO.Directory.Exists(SourceDirectoryNode.TargetPath), "TargetPath should have existed or exception should be thrown") 1033If Not IO.Directory.Exists(SourceDirectoryNode.TargetPath) Then 1115If IO.Directory.Exists(destinationFileFullPath) Then 1191If Not IO.Directory.Exists(directoryFullPath) Then 1253If IO.Directory.Exists(Path) Then 1499ElseIf IO.Directory.Exists(FullPath) Then 2096Debug.Assert(IO.Directory.Exists(DirectoryPath), "Directory does not exist")
Microsoft\VisualBasic\FileSystem.vb (1)
206If Directory.Exists(Path) Then
Microsoft.VisualBasic.Forms.Tests (9)
System\Windows\Forms\FileSystemProxyTests.vb (8)
41Directory.Exists(sourceDirectoryName).Should.BeTrue() 42Directory.Exists(destinationDirectoryName).Should.BeTrue() 57Directory.Exists(sourceDirectoryName).Should.BeTrue() 58Directory.Exists(destinationDirectoryName).Should.BeTrue() 109Directory.Exists(sourceDirectoryName).Should.BeFalse() 124Directory.Exists(sourceDirectoryName).Should.BeFalse() 224Directory.Exists(sourceDirectoryName).Should.BeFalse() 225Directory.Exists(destinationDirectoryName).Should.BeTrue()
System\Windows\TestUtilities\VbFileCleanupTestBase.vb (1)
30If Directory.Exists(testDirectoryName) Then
Microsoft.VisualBasic.Tests (11)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (11)
183Assert.False(Directory.Exists(FullPathToNewDirectory)); 185Assert.True(Directory.Exists(FullPathToNewDirectory)); 210Assert.True(Directory.Exists(FullPathToNewDirectory)); 214Assert.False(Directory.Exists(FullPathToNewDirectory)); 222Assert.True(Directory.Exists(FullPathToNewDirectory)); 227Assert.True(Directory.Exists(FullPathToNewDirectory)); 501Assert.False(Directory.Exists(FullPathToSourceDirectory)); 527Assert.False(Directory.Exists(FullPathToSourceDirectory)); 565Assert.False(Directory.Exists(FullPathToSourceDirectory)); 651Assert.True(Directory.Exists(NewFDirectoryPath)); 652Assert.False(Directory.Exists(OrigDirectoryWithPath));
Microsoft.VisualStudio.LanguageServices (3)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (1)
67if (!Directory.Exists(vsFeedbackTempDir))
Interactive\VsResetInteractive.cs (1)
148sourceSearchPathsBuilder.Add(Directory.Exists(scriptsDir) ? scriptsDir : projectDir);
Watson\FaultReporter.cs (1)
309if (!Directory.Exists(logDirectoryPath))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\CSharpHelpers.cs (1)
134if (baseDirectory == null || !Directory.Exists(baseDirectory))
Pipelines.AppHost (1)
AppHost.cs (1)
270if (!Directory.Exists(sourcePath))
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
185if (Directory.Exists(publishDir))
PrepareTests (1)
MinimizeUtil.cs (1)
64.Where(x => Directory.Exists(x))
PresentationBuildTasks (5)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
135if (!Directory.Exists(OutputPath))
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
108if (!Directory.Exists(OutputPath))
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
163if (!Directory.Exists(OutputPath))
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
384if (!Directory.Exists(_backupPath))
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
482if (targetPath.Length > 0 && !Directory.Exists(targetPath))
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (1)
103if (!Directory.Exists(subFolderPath))
Replay (2)
Replay.cs (1)
125if (Directory.Exists(options.OutputDirectory))
src\Compilers\Shared\CompilerServerLogger.cs (1)
124if (Directory.Exists(loggingFilePath))
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Roslyn.Test.Performance.Utilities (2)
Benchview.cs (1)
64if (!Directory.Exists(s_scriptDirectory))
Logger.cs (1)
46if (Directory.Exists(TestUtilities.GetCPCDirectoryPath()))
RulesetToEditorconfigConverter (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
RunTests (4)
FileUtil.cs (2)
17if (!Directory.Exists(directory)) 56if (Directory.Exists(directory))
Options.cs (1)
209if (artifactsPath is null || !Directory.Exists(artifactsPath))
Program.cs (1)
304if (!Directory.Exists(configDirectory))
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
91if (Directory.Exists(path))
System.Configuration.ConfigurationManager (1)
System\Configuration\Internal\InternalConfigHost.cs (1)
243if (!Directory.Exists(dir))
System.Console (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System.Diagnostics.Process (2)
System\Diagnostics\Process.Linux.cs (1)
168if (Directory.Exists(path))
System\Diagnostics\Process.Unix.cs (1)
451if (Directory.Exists(filename))
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (1)
35if (!Directory.Exists(value))
System.Drawing.Common (1)
System\Drawing\Image.cs (1)
396if (!string.IsNullOrEmpty(directoryPart) && !Directory.Exists(directoryPart))
System.Drawing.Common.Tests (1)
mono\System.Drawing\BitmapTests.cs (1)
299if (!Directory.Exists(sRslt))
System.Formats.Tar (13)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System\Formats\Tar\TarEntry.cs (3)
450Debug.Assert(Directory.Exists(Path.GetDirectoryName(filePath))); 451Debug.Assert(!Directory.Exists(filePath)); 518if (Directory.Exists(filePath))
System\Formats\Tar\TarFile.cs (8)
41if (!Directory.Exists(sourceDirectoryName)) 80if (!Directory.Exists(sourceDirectoryName)) 110if (!Directory.Exists(sourceDirectoryName)) 146if (!Directory.Exists(sourceDirectoryName)) 181if (!Directory.Exists(destinationDirectoryName)) 226if (!Directory.Exists(destinationDirectoryName)) 269if (!Directory.Exists(destinationDirectoryName)) 316if (!Directory.Exists(destinationDirectoryName))
System\Formats\Tar\TarHelpers.Unix.cs (1)
62if (Directory.Exists(fullPath))
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System\IO\DriveInfo.cs (1)
26public bool IsReady => Directory.Exists(Name);
System.IO.FileSystem.Watcher (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System\IO\FileSystemWatcher.cs (2)
245if (!Directory.Exists(value)) 367if (!Directory.Exists(path))
System.IO.IsolatedStorage (4)
System\IO\IsolatedStorage\Helper.cs (1)
66if (!Directory.Exists(rootDirectory))
System\IO\IsolatedStorage\IsolatedStorageFile.cs (3)
44return !Directory.Exists(RootDirectory); 106return Directory.Exists(GetFullPath(path)); 123if (Directory.Exists(isPath))
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System.IO.Ports (5)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
System\IO\Ports\SerialPort.Unix.cs (4)
38if (Directory.Exists(sysTtyDir)) 57Directory.Exists(entry.FullName + "/device/of_node"))) || 58(!isTtyS && Directory.Exists(entry.FullName + "/device/tty")) || 59Directory.Exists(sysUsbDir + entry.Name) ||
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
278if (!string.IsNullOrEmpty(dirname) && !Directory.Exists(dirname))
System.Private.CoreLib (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
174return Directory.Exists(parentPath);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
103if (!Directory.Exists(Path.GetDirectoryName(destFullPath))) 250if (directoryName.Length > 0 && !Directory.Exists(directoryName))
System.Security.Cryptography (4)
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (4)
57if (!Directory.Exists(_storePath)) 81if (!Directory.Exists(_storePath)) 227if (!Directory.Exists(_storePath)) 392if (Directory.Exists(storePath))
System.Windows.Forms (2)
System\Windows\Forms\Application.cs (1)
1188if (!Directory.Exists(path))
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
371if (parent is null || !string.IsNullOrEmpty(_initialDirectory) || !Directory.Exists(parent))
System.Windows.Forms.Analyzers.Tests (2)
CurrentReferences.cs (2)
63if (!Directory.Exists(Path.Join(netCoreAppRefPath, netCoreRefsVersion))) 102if (!Directory.Exists(sdkFolderPath))
System.Windows.Forms.IntegrationTests.Common (2)
TestHelpers.cs (2)
108if (!Directory.Exists(dotnetPath)) 209if (!Directory.Exists(sdkPath))
System.Windows.Forms.Primitives.TestUtilities.Tests (1)
PathLengthTests.cs (1)
16Directory.Exists(currentPath).Should().BeTrue();
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
142if (!Directory.Exists(dragDropDirectory)) 242if (Directory.Exists(dragDropDirectory))
Templates.Blazor.Tests (13)
BlazorTemplateTest.cs (1)
63if (!Directory.Exists(subProjectDirectory))
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
89if (!Directory.Exists(subProjectDirectory))
src\ProjectTemplates\Shared\Project.cs (1)
116if (Directory.Exists(TemplateOutputDir))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
53if (Directory.Exists(CustomHivePath))
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
Templates.Blazor.WebAssembly.Auth.Tests (14)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
89if (!Directory.Exists(subProjectDirectory))
src\ProjectTemplates\Shared\Project.cs (1)
116if (Directory.Exists(TemplateOutputDir))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
53if (Directory.Exists(CustomHivePath))
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
src\Shared\E2ETesting\BrowserFixture.cs (1)
90if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
101if (!Directory.Exists(trackingFolder))
Templates.Blazor.WebAssembly.Tests (14)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
89if (!Directory.Exists(subProjectDirectory))
src\ProjectTemplates\Shared\Project.cs (1)
116if (Directory.Exists(TemplateOutputDir))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
53if (Directory.Exists(CustomHivePath))
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
src\Shared\E2ETesting\BrowserFixture.cs (1)
90if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
101if (!Directory.Exists(trackingFolder))
Templates.Mvc.Tests (14)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
89if (!Directory.Exists(subProjectDirectory))
src\ProjectTemplates\Shared\Project.cs (1)
116if (Directory.Exists(TemplateOutputDir))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
53if (Directory.Exists(CustomHivePath))
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
src\Shared\E2ETesting\BrowserFixture.cs (1)
90if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
101if (!Directory.Exists(trackingFolder))
Templates.Tests (14)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
89if (!Directory.Exists(subProjectDirectory))
src\ProjectTemplates\Shared\Project.cs (1)
116if (Directory.Exists(TemplateOutputDir))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
53if (Directory.Exists(CustomHivePath))
src\Shared\CertificateGeneration\CertificateManager.cs (1)
374if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation)) 434if (!Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
720if (!Directory.Exists(nssDb)) 748if (!Directory.Exists(homeDirectory)) 756if (Directory.Exists(chromiumNssDb)) 764if (Directory.Exists(chromiumSnapNssDb)) 770if (Directory.Exists(firefoxDir)) 780if (Directory.Exists(firefoxSnapDir))
src\Shared\E2ETesting\BrowserFixture.cs (1)
90if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
101if (!Directory.Exists(trackingFolder))
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
33if (Directory.Exists(editorconfigFilePath))
vbc (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
124if (Directory.Exists(loggingFilePath))
VBCSCompiler (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
124if (Directory.Exists(loggingFilePath))
WinFormsControlsTest (1)
DragDrop.cs (1)
389if (Directory.Exists(dragDropDataDirectory))
WinShimmer (1)
Program.cs (1)
35if (!Directory.Exists(outputDirectory))
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DirectoryWrapper.cs (1)
12return Directory.Exists(path);