3 implementations of DirectoryExists
Microsoft.Build.Utilities.Core (3)
CachingFileSystemWrapper.cs (1)
39
public bool
DirectoryExists
(string path)
ManagedFileSystem.cs (1)
137
public virtual bool
DirectoryExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
71
public bool
DirectoryExists
(string path)
29 references to DirectoryExists
Microsoft.Build.Utilities.Core (29)
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));
FileMatcher.cs (2)
249
if (fileSystem.
DirectoryExists
(path))
2088
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
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))
ToolLocationHelper.cs (10)
846
if (FileSystems.Default.
DirectoryExists
(propsFileLocation))
1035
if (!FileSystems.Default.
DirectoryExists
(winmdLocation))
1133
if (FileSystems.Default.
DirectoryExists
(contractPath))
2329
if (FileSystems.Default.
DirectoryExists
(path))
2897
if (FileSystems.Default.
DirectoryExists
(localAppdataFolder))
3197
if (!FileSystems.Default.
DirectoryExists
(pathToReturn))
3203
else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.
DirectoryExists
(redirectPath))
3808
if (FileSystems.Default.
DirectoryExists
(dotNetFx20Path))
3960
if (FileSystems.Default.
DirectoryExists
(dotNextFx30RefPath))
3967
if (FileSystems.Default.
DirectoryExists
(dotNextFx35RefPath))
ToolTask.cs (1)
1326
return FileSystems.Default.
DirectoryExists
(path);
TrackedDependencies\FlatTrackingData.cs (1)
646
if (!FileSystems.Default.
DirectoryExists
(markerDirectory))
TrackedDependencies\TrackedDependencies.cs (1)
45
if (!FileMatcher.HasWildcards(directoryName) && FileSystems.Default.
DirectoryExists
(directoryName))