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)
137
public virtual bool
DirectoryExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
71
public bool
DirectoryExists
(string path)
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2654
public bool
DirectoryExists
(string path)
25 references to DirectoryExists
Microsoft.Build (20)
BackEnd\Shared\BuildResult.cs (1)
711
if (FileSystems.Default.
DirectoryExists
(resultsDirectory))
BuildEnvironmentHelper.cs (2)
274
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
299
.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)
997
overrideDirectoryExists = FileSystems.Default.
DirectoryExists
(_overrideTasksPath);
Definition\ToolsetReader.cs (1)
197
if (FileSystems.Default.
DirectoryExists
(xbuildToolsetsDir))
FileMatcher.cs (2)
247
if (fileSystem.
DirectoryExists
(path))
2100
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)
207
if (DefaultFileSystem.
DirectoryExists
(cacheDirectory))
683
return (shouldCheckDirectory && DefaultFileSystem.
DirectoryExists
(Path.Combine(baseDirectory, directory.ToString())))
894
if (DefaultFileSystem.
DirectoryExists
(path))
1001
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
DirectoryExists
(fullPath))
1002
: fileSystem.
DirectoryExists
(fullPath);
1495
if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.
DirectoryExists
(directoryPath))
FrameworkLocationHelper.cs (4)
922
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1092
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1431
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1533
if (FileSystems.Default.
DirectoryExists
(referencePath))
TempFileUtilities.cs (1)
234
if (FileSystems.Default.
DirectoryExists
(Path))
Microsoft.Build.UnitTests.Shared (5)
ObjectModelHelpers.cs (4)
875
if (FileSystems.Default.
DirectoryExists
(dir))
1654
Assert.True(FileSystems.Default.
DirectoryExists
(rootDirectory), $"Directory {rootDirectory} does not exist");
1671
Assert.True(FileSystems.Default.
DirectoryExists
(directoryName));
1865
if (FileSystems.Default.
DirectoryExists
(directory) && (Directory.GetFileSystemEntries(directory).Length == 0))
TestEnvironment.cs (1)
290
Assert.True(!(createFolder ^ FileSystems.Default.
DirectoryExists
(folder.Path)));