3 implementations of DirectoryExists
Microsoft.Build.Tasks.Core (3)
CachingFileSystemWrapper.cs (1)
39public bool DirectoryExists(string path)
ManagedFileSystem.cs (1)
137public virtual bool DirectoryExists(string path)
MSBuildOnWindowsFileSystem.cs (1)
71public bool DirectoryExists(string path)
28 references to DirectoryExists
Microsoft.Build.Tasks.Core (28)
BootstrapperUtil\BootstrapperBuilder.cs (3)
531if (FileSystems.Default.DirectoryExists(startDirectory)) 601if (FileSystems.Default.DirectoryExists(packagePath)) 1582if (!FileSystems.Default.DirectoryExists(strFolderPath))
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));
Copy.cs (1)
259if (!FileSystems.Default.DirectoryExists(destinationFolder))
Exec.cs (1)
529if (!FileSystems.Default.DirectoryExists(_workingDirectory))
FileMatcher.cs (2)
247if (fileSystem.DirectoryExists(path)) 2100if (fixedDirectoryPart.Length > 0 && !_fileSystem.DirectoryExists(fixedDirectoryPart))
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))
GenerateResource.cs (2)
2682if (!FileSystems.Default.DirectoryExists(currentOutputDirectory)) 2856if (!FileSystems.Default.DirectoryExists(shorterPath))
ManifestUtil\LauncherBuilder.cs (1)
106if (!FileSystems.Default.DirectoryExists(strFolderPath))
ManifestUtil\Util.cs (1)
285if (!FileSystems.Default.DirectoryExists(logPath))
Move.cs (3)
206if (FileSystems.Default.DirectoryExists(destinationFile)) 212if (FileSystems.Default.DirectoryExists(sourceFile)) 236if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.DirectoryExists(destinationFolder))
NativeMethods.cs (2)
1323if (FileSystems.Default.DirectoryExists(s_gacPath)) 1449if (FileSystems.Default.DirectoryExists(path))
RedistList.cs (1)
307if (FileSystems.Default.DirectoryExists(redistDirectory))
RemoveDir.cs (1)
64if (FileSystems.Default.DirectoryExists(directory.ItemSpec))
TempFileUtilities.cs (1)
234if (FileSystems.Default.DirectoryExists(Path))