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