3 implementations of DirectoryExists
Microsoft.Build.Utilities.Core (3)
CachingFileSystemWrapper.cs (1)
39
public bool
DirectoryExists
(string path)
ManagedFileSystem.cs (1)
139
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)
253
if (fileSystem.
DirectoryExists
(path))
2092
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)
958
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1128
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1471
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1573
if (FileSystems.Default.
DirectoryExists
(referencePath))
TempFileUtilities.cs (1)
234
if (FileSystems.Default.
DirectoryExists
(Path))
ToolLocationHelper.cs (10)
851
if (FileSystems.Default.
DirectoryExists
(propsFileLocation))
1040
if (!FileSystems.Default.
DirectoryExists
(winmdLocation))
1138
if (FileSystems.Default.
DirectoryExists
(contractPath))
2335
if (FileSystems.Default.
DirectoryExists
(path))
2903
if (FileSystems.Default.
DirectoryExists
(localAppdataFolder))
3203
if (!FileSystems.Default.
DirectoryExists
(pathToReturn))
3209
else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.
DirectoryExists
(redirectPath))
3814
if (FileSystems.Default.
DirectoryExists
(dotNetFx20Path))
3966
if (FileSystems.Default.
DirectoryExists
(dotNextFx30RefPath))
3973
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))