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)
2653
public bool
DirectoryExists
(string path)
25 references to DirectoryExists
Microsoft.Build (20)
BackEnd\Shared\BuildResult.cs (1)
722
if (FileSystems.Default.
DirectoryExists
(resultsDirectory))
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)
1007
overrideDirectoryExists = FileSystems.Default.
DirectoryExists
(_overrideTasksPath);
Definition\ToolsetReader.cs (1)
197
if (FileSystems.Default.
DirectoryExists
(xbuildToolsetsDir))
FileMatcher.cs (2)
249
if (fileSystem.
DirectoryExists
(path))
2088
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())))
927
if (DefaultFileSystem.
DirectoryExists
(path))
1034
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
DirectoryExists
(fullPath))
1035
: fileSystem.
DirectoryExists
(fullPath);
1528
if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.
DirectoryExists
(directoryPath))
FrameworkLocationHelper.cs (4)
925
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1095
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1435
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1537
if (FileSystems.Default.
DirectoryExists
(referencePath))
TempFileUtilities.cs (1)
234
if (FileSystems.Default.
DirectoryExists
(Path))
Microsoft.Build.UnitTests.Shared (5)
ObjectModelHelpers.cs (4)
874
if (FileSystems.Default.
DirectoryExists
(dir))
1655
Assert.True(FileSystems.Default.
DirectoryExists
(rootDirectory), $"Directory {rootDirectory} does not exist");
1672
Assert.True(FileSystems.Default.
DirectoryExists
(directoryName));
1866
if (FileSystems.Default.
DirectoryExists
(directory) && (Directory.GetFileSystemEntries(directory).Length == 0))
TestEnvironment.cs (1)
291
Assert.True(!(createFolder ^ FileSystems.Default.
DirectoryExists
(folder.Path)));