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