6 implementations of DirectoryExists
Microsoft.Build (5)
CachingFileSystemWrapper.cs (1)
39
public bool
DirectoryExists
(string path)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
44
public bool
DirectoryExists
(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
75
public virtual bool
DirectoryExists
(string path) => FileSystems.Default.DirectoryExists(path);
ManagedFileSystem.cs (1)
139
public virtual bool
DirectoryExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
71
public bool
DirectoryExists
(string path)
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2679
public bool
DirectoryExists
(string path)
31 references to DirectoryExists
Microsoft.Build (26)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
483
if (!FileSystems.Default.
DirectoryExists
(path))
BackEnd\Shared\BuildResult.cs (1)
725
if (FileSystems.Default.
DirectoryExists
(resultsDirectory))
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
83
if (locationFromEnv != null && FileSystems.Default.
DirectoryExists
(locationFromEnv))
BuildEnvironmentHelper.cs (2)
273
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
298
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
CachingFileSystemWrapper.cs (1)
41
return CachedExistenceCheck(path, p => _fileSystem.
DirectoryExists
(p));
Definition\Toolset.cs (1)
900
overrideDirectoryExists = FileSystems.Default.
DirectoryExists
(_overrideTasksPath);
Definition\ToolsetReader.cs (1)
191
if (FileSystems.Default.
DirectoryExists
(xbuildToolsetsDir))
FileMatcher.cs (2)
259
if (fileSystem.
DirectoryExists
(path))
2115
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
FileSystem\MSBuildFileSystemBase.cs (1)
75
public virtual bool DirectoryExists(string path) => FileSystems.Default.
DirectoryExists
(path);
FileUtilities.cs (6)
220
if (DefaultFileSystem.
DirectoryExists
(cacheDirectory))
704
return (shouldCheckDirectory && DefaultFileSystem.
DirectoryExists
(Path.Combine(baseDirectory, directory.ToString())))
956
if (DefaultFileSystem.
DirectoryExists
(path))
1063
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
DirectoryExists
(fullPath))
1064
: fileSystem.
DirectoryExists
(fullPath);
1557
if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.
DirectoryExists
(directoryPath))
FrameworkLocationHelper.cs (5)
958
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1128
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1425
FileSystems.Default.
DirectoryExists
,
1471
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1573
if (FileSystems.Default.
DirectoryExists
(referencePath))
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
67
if (!FileSystems.Default.
DirectoryExists
(cacheDirectory))
TaskFactoryUtilities.cs (1)
251
if (FileSystems.Default.
DirectoryExists
(processSpecificInlineTaskDir))
TempFileUtilities.cs (1)
234
if (FileSystems.Default.
DirectoryExists
(Path))
Utilities\EngineFileUtilities.cs (1)
603
return existenceCache.Value.GetOrAdd(directory, directory => FileSystems.Default.
DirectoryExists
(directory));
Microsoft.Build.UnitTests.Shared (5)
ObjectModelHelpers.cs (4)
874
if (FileSystems.Default.
DirectoryExists
(dir))
1668
Assert.True(FileSystems.Default.
DirectoryExists
(rootDirectory), $"Directory {rootDirectory} does not exist");
1685
Assert.True(FileSystems.Default.
DirectoryExists
(directoryName));
1879
if (FileSystems.Default.
DirectoryExists
(directory) && (Directory.GetFileSystemEntries(directory).Length == 0))
TestEnvironment.cs (1)
329
Assert.True(!(createFolder ^ FileSystems.Default.
DirectoryExists
(folder.Path)));