4 implementations of Exists
dotnet.Tests (2)
ConfigurerTests\GivenAFirstTimeUseNoticeSentinel.cs (1)
161
public bool
Exists
(string path)
ConfigurerTests\GivenAFunctionReturnStringAndFakeFileSystem.cs (1)
179
public bool
Exists
(string path)
Microsoft.DotNet.InternalAbstractions (1)
DirectoryWrapper.cs (1)
10
public bool
Exists
(string path)
Microsoft.NET.TestFramework (1)
Mock\FileSystemMockBuilder.cs (1)
520
public bool
Exists
(string path)
51 references to Exists
dotnet (11)
BuildServer\BuildServerProvider.cs (1)
49
if (!_fileSystem.Directory.
Exists
(directory.Value))
PerformanceLogEventListener.cs (1)
39
if (string.IsNullOrWhiteSpace(logDirectory) || !fileSystem.Directory.
Exists
(logDirectory))
PerformanceLogManager.cs (2)
64
if (!_fileSystem.Directory.
Exists
(_perfLogRoot))
81
if (_fileSystem.Directory.
Exists
(_perfLogRoot))
ShellShim\ShellShimRepository.cs (1)
44
if (!_fileSystem.Directory.
Exists
(_shimsDirectory.Value))
ToolManifest\ToolManifestFinder.cs (1)
225
if (_fileSystem.Directory.
Exists
(currentSearchGitDirectory.Value))
ToolPackage\ToolPackageDownloaderBase.cs (2)
216
if (rollbackDirectory != null && _fileSystem.Directory.
Exists
(rollbackDirectory))
223
if (_fileSystem.Directory.
Exists
(packageRootDirectory.Value) &&
ToolPackage\ToolPackageStoreAndQuery.cs (3)
59
if (!_fileSystem.Directory.
Exists
(Root.Value))
85
if (!_fileSystem.Directory.
Exists
(packageRootDirectory.Value))
107
if (!_fileSystem.Directory.
Exists
(directory.Value))
dotnet.Tests (12)
BuildServerTests\BuildServerProviderTests.cs (1)
149
directoryMock.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)
163
return _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)
21
fileSystem.Directory.
Exists
(nestedFilePath).Should().BeFalse();
90
fileSystem.Directory.
Exists
(Path.Combine(directory, "dir")).Should().BeTrue();
102
fileSystem.Directory.
Exists
(directory).Should().BeTrue();
557
fileSystem.Directory.
Exists
(testDirectory).Should().BeFalse();
624
fileSystem.Directory.
Exists
(testDirectoryPath).Should().BeFalse();
644
fileSystem.Directory.
Exists
(testSourceDirectoryPath).Should().BeFalse();
645
fileSystem.Directory.
Exists
(testDirectoryFilePath).Should().BeFalse();
646
fileSystem.Directory.
Exists
(testDestinationDirectoryPath).Should().BeTrue();
Microsoft.DotNet.Configurer (2)
IFileExtensions.cs (1)
20
if (!fileSystem.Directory.
Exists
(parentDirectory))
UserLevelCacheWriter.cs (1)
35
if (!_directory.
Exists
(_dotnetUserProfileFolderPath))
Microsoft.DotNet.PackageInstall.Tests (7)
ToolPackageDownloaderTests.cs (7)
457
if (fileSystem.Directory.
Exists
(localToolVersionDir))
476
.
Exists
(localToolDownloadDir)
481
.
Exists
(localToolVersionDir)
494
.
Exists
(localToolDownloadDir)
501
.
Exists
(localToolVersionDir)
588
.
Exists
(store.Root.WithSubDirectories(TestPackageId.ToString()).Value)
852
if (!fileSystem.Directory.
Exists
(store.Root.Value))
Microsoft.DotNet.Tools.Tests.ComponentMocks (11)
ToolPackageDownloaderMock.cs (3)
160
if (_fileSystem.Directory.
Exists
(packageDirectory.Value))
212
if (rollbackDirectory != null && _fileSystem.Directory.
Exists
(rollbackDirectory))
216
if (_fileSystem.Directory.
Exists
(packageRootDirectory.Value) &&
ToolPackageDownloaderMock2.cs (3)
153
if (!_fileSystem.Directory.
Exists
(Path.GetDirectoryName(resolvedPath)!))
167
if (_fileSystem.Directory.
Exists
(nupkgDir))
185
return _fileSystem.Directory.
Exists
(nupkgDir);
ToolPackageStoreMock.cs (3)
66
if (!_fileSystem.Directory.
Exists
(Root.Value))
91
if (!_fileSystem.Directory.
Exists
(packageRootDirectory.Value))
113
if (!_fileSystem.Directory.
Exists
(directory.Value))
ToolPackageUninstallerMock.cs (2)
37
if (_fileSystem.Directory.
Exists
(packageDirectory.Value))
46
if (_fileSystem.Directory.
Exists
(rootDirectory.Value) &&