1 implementation of Exists
Microsoft.DotNet.InternalAbstractions (1)
FileWrapper.cs (1)
8
public bool
Exists
(string path)
24 references to Exists
dotnet (19)
BuildServer\RazorServer.cs (2)
27
if (!_fileSystem.File.
Exists
(PidFile.ServerPath.Value))
66
if (_fileSystem.File.
Exists
(PidFile.Path.Value))
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (1)
86
if (!_fileSystem.File.
Exists
(toolCommand.Executable.Value))
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
133
&& _fileSystem.File.
Exists
(toolCommand.Executable.Value);
ShellShim\LinuxEnvironmentPath.cs (1)
66
if (_fileSystem.
Exists
(DotnetCliToolsProfilePath))
ShellShim\OsxBashEnvironmentPath.cs (1)
54
if (_fileSystem.
Exists
(DotnetCliToolsPathsDPath))
ShellShim\ShellShimRepository.cs (3)
109
foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.
Exists
(f.Value)))
124
foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.
Exists
(f.Value)))
170
return GetShimFiles(toolCommand).Any(p => _fileSystem.File.
Exists
(p.Value));
ToolManifest\ToolManifestFinder.cs (6)
72
if (!_fileSystem.File.
Exists
(possibleManifest.Value))
106
if (!_fileSystem.File.
Exists
(possibleManifest.Value))
138
if (!_fileSystem.File.
Exists
(possibleManifest.Value))
197
if (_fileSystem.File.
Exists
(possibleManifest.Value))
233
|| _fileSystem.File.
Exists
(currentSearchDirectory.Value.WithFile(".git").Value))
279
if (_fileSystem.File.
Exists
(possibleManifest.Value))
ToolPackage\LocalToolsResolverCache.cs (2)
41
if (_fileSystem.File.
Exists
(packageCacheFile))
76
if (_fileSystem.File.
Exists
(packageCacheFile))
ToolPackage\ToolPackageDownloaderBase.cs (1)
386
if (_fileSystem.File.
Exists
(runtimeConfigFilePath))
ToolPackage\ToolPackageInstance.cs (1)
55
bool usingRidSpecificPackage = _fileSystem.File.
Exists
(assetsJsonParentDirectory.WithFile(RidSpecificPackageAssetsFileName).Value);
Microsoft.DotNet.Configurer (5)
AspNetCertificateSentinel.cs (1)
33
return _fileSystem.File.
Exists
(SentinelPath);
FileSentinel.cs (1)
26
return _fileSystem.File.
Exists
(_file.Value);
FirstTimeUseNoticeSentinel.cs (1)
33
return _fileSystem.File.
Exists
(SentinelPath);
IFileExtensions.cs (1)
18
if (!fileSystem.File.
Exists
(filePath))
UserLevelCacheWriter.cs (1)
33
if (!_file.
Exists
(cacheFilepath))