4 implementations of Exists
dotnet.Tests (2)
ConfigurerTests\GivenAFirstTimeUseNoticeSentinel.cs (1)
161public bool Exists(string path)
ConfigurerTests\GivenAFunctionReturnStringAndFakeFileSystem.cs (1)
179public bool Exists(string path)
Microsoft.DotNet.InternalAbstractions (1)
DirectoryWrapper.cs (1)
10public bool Exists(string path)
Microsoft.NET.TestFramework (1)
Mock\FileSystemMockBuilder.cs (1)
520public bool Exists(string path)
51 references to Exists
dotnet (11)
BuildServer\BuildServerProvider.cs (1)
49if (!_fileSystem.Directory.Exists(directory.Value))
PerformanceLogEventListener.cs (1)
39if (string.IsNullOrWhiteSpace(logDirectory) || !fileSystem.Directory.Exists(logDirectory))
PerformanceLogManager.cs (2)
64if (!_fileSystem.Directory.Exists(_perfLogRoot)) 81if (_fileSystem.Directory.Exists(_perfLogRoot))
ShellShim\ShellShimRepository.cs (1)
44if (!_fileSystem.Directory.Exists(_shimsDirectory.Value))
ToolManifest\ToolManifestFinder.cs (1)
225if (_fileSystem.Directory.Exists(currentSearchGitDirectory.Value))
ToolPackage\ToolPackageDownloaderBase.cs (2)
216if (rollbackDirectory != null && _fileSystem.Directory.Exists(rollbackDirectory)) 223if (_fileSystem.Directory.Exists(packageRootDirectory.Value) &&
ToolPackage\ToolPackageStoreAndQuery.cs (3)
59if (!_fileSystem.Directory.Exists(Root.Value)) 85if (!_fileSystem.Directory.Exists(packageRootDirectory.Value)) 107if (!_fileSystem.Directory.Exists(directory.Value))
dotnet.Tests (12)
BuildServerTests\BuildServerProviderTests.cs (1)
149directoryMock.Setup(d => d.Exists(pidDirectory)).Returns(true);
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (3)
283_fileSystem.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse(); 306_fileSystem.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse(); 799_fileSystem.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse();
CommandTests\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommandTests.cs (6)
79_fileSystem.Directory.Exists(packageDirectory.Value).Should().BeTrue(); 95_fileSystem.Directory.Exists(packageDirectory.Value).Should().BeFalse(); 121_fileSystem.Directory.Exists(packageDirectory.Value).Should().BeTrue(); 165_fileSystem.Directory.Exists(packageDirectory.Value).Should().BeFalse(); 191_fileSystem.Directory.Exists(packageDirectory.Value).Should().BeTrue(); 208_fileSystem.Directory.Exists(packageDirectory.Value).Should().BeTrue();
ConfigurerTests\GivenAFirstTimeUseNoticeSentinel.cs (1)
163return _directorySystem.Exists(path);
ToolManifestTests\ToolManifestFinderTests.cs (1)
780_fileSystem.Directory.Exists(Path.Combine(_testDirectoryRoot, ".config")).Should().BeFalse("New manifests should not create .config directories");
Microsoft.DotNet.Cli.Utils.Tests (8)
MockFileSystemTests.cs (8)
21fileSystem.Directory.Exists(nestedFilePath).Should().BeFalse(); 90fileSystem.Directory.Exists(Path.Combine(directory, "dir")).Should().BeTrue(); 102fileSystem.Directory.Exists(directory).Should().BeTrue(); 557fileSystem.Directory.Exists(testDirectory).Should().BeFalse(); 624fileSystem.Directory.Exists(testDirectoryPath).Should().BeFalse(); 644fileSystem.Directory.Exists(testSourceDirectoryPath).Should().BeFalse(); 645fileSystem.Directory.Exists(testDirectoryFilePath).Should().BeFalse(); 646fileSystem.Directory.Exists(testDestinationDirectoryPath).Should().BeTrue();
Microsoft.DotNet.Configurer (2)
IFileExtensions.cs (1)
20if (!fileSystem.Directory.Exists(parentDirectory))
UserLevelCacheWriter.cs (1)
35if (!_directory.Exists(_dotnetUserProfileFolderPath))
Microsoft.DotNet.PackageInstall.Tests (7)
ToolPackageDownloaderTests.cs (7)
457if (fileSystem.Directory.Exists(localToolVersionDir)) 476.Exists(localToolDownloadDir) 481.Exists(localToolVersionDir) 494.Exists(localToolDownloadDir) 501.Exists(localToolVersionDir) 588.Exists(store.Root.WithSubDirectories(TestPackageId.ToString()).Value) 852if (!fileSystem.Directory.Exists(store.Root.Value))
Microsoft.DotNet.Tools.Tests.ComponentMocks (11)
ToolPackageDownloaderMock.cs (3)
160if (_fileSystem.Directory.Exists(packageDirectory.Value)) 212if (rollbackDirectory != null && _fileSystem.Directory.Exists(rollbackDirectory)) 216if (_fileSystem.Directory.Exists(packageRootDirectory.Value) &&
ToolPackageDownloaderMock2.cs (3)
153if (!_fileSystem.Directory.Exists(Path.GetDirectoryName(resolvedPath)!)) 167if (_fileSystem.Directory.Exists(nupkgDir)) 185return _fileSystem.Directory.Exists(nupkgDir);
ToolPackageStoreMock.cs (3)
66if (!_fileSystem.Directory.Exists(Root.Value)) 91if (!_fileSystem.Directory.Exists(packageRootDirectory.Value)) 113if (!_fileSystem.Directory.Exists(directory.Value))
ToolPackageUninstallerMock.cs (2)
37if (_fileSystem.Directory.Exists(packageDirectory.Value)) 46if (_fileSystem.Directory.Exists(rootDirectory.Value) &&