2 implementations of DirectoryExists
Microsoft.TemplateEngine.Utils (2)
InMemoryFileSystem.cs (1)
134public bool DirectoryExists(string directory)
PhysicalFileSystem.cs (1)
14public bool DirectoryExists(string directory)
24 references to DirectoryExists
Microsoft.TemplateEngine.Cli (5)
CliTemplateEngineHost.cs (1)
66if (string.IsNullOrWhiteSpace(workingPath) || !FileSystem.DirectoryExists(workingPath))
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (3)
50fileSystem.DirectoryExists(Path.Combine(currentDirectory, ".git"))) 62if (fileSystem.DirectoryExists(currentDirectory) && 248string? directory = fileSystem.DirectoryExists(startPath) ? startPath : Path.GetDirectoryName(startPath);
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
98if (!string.IsNullOrEmpty(outputBasePath) && fileSystem.DirectoryExists(outputBasePath))
Microsoft.TemplateEngine.Core (1)
Util\Orchestrator.cs (1)
160if (_fileSystem.DirectoryExists(targetPath))
Microsoft.TemplateEngine.Edge (15)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (1)
28if (!settings.Host.FileSystem.DirectoryExists(packagesFolder))
Installers\Folder\FolderInstaller.cs (2)
26return Task.FromResult(_settings.Host.FileSystem.DirectoryExists(installationRequest.PackageIdentifier)); 52if (_settings.Host.FileSystem.DirectoryExists(installRequest.PackageIdentifier))
Installers\NuGet\NuGetInstaller.cs (2)
31if (!_environmentSettings.Host.FileSystem.DirectoryExists(installPath)) 54if (!_environmentSettings.Host.FileSystem.DirectoryExists(installPath))
Mount\FileSystem\FileSystemDirectory.cs (2)
24public override bool Exists => _fileSystem.DirectoryExists(_physicalPath); 47if (_fileSystem.DirectoryExists(x) && baseName[baseName.Length - 1] != '/')
Mount\FileSystem\FileSystemMountPoint.cs (1)
63if (EnvironmentSettings.Host.FileSystem.DirectoryExists(fullPath))
Mount\FileSystem\FileSystemMountPointFactory.cs (1)
29if (parent != null || !environmentSettings.Host.FileSystem.DirectoryExists(uri.LocalPath))
Settings\SettingsFilePaths.cs (6)
49if (_environmentSettings.Host.FileSystem.DirectoryExists(p)) 71if (_environmentSettings.Host.FileSystem.DirectoryExists(path)) 83if (_environmentSettings.Host.FileSystem.DirectoryExists(path)) 98if (_environmentSettings.Host.FileSystem.DirectoryExists(path)) 113if (_environmentSettings.Host.FileSystem.DirectoryExists(path)) 123return _environmentSettings.Host.FileSystem.FileExists(path) || _environmentSettings.Host.FileSystem.DirectoryExists(path);
Microsoft.TemplateEngine.Utils (3)
FileFindHelpers.cs (1)
14string? directory = fileSystem.DirectoryExists(startPath) ? startPath : Path.GetDirectoryName(startPath);
IFileSystemInfoExtensions.cs (1)
23if (fileSystemInfo.MountPoint.EnvironmentSettings.Host.FileSystem.DirectoryExists(fileSystemInfo.MountPoint.MountPointUri))
InMemoryFileSystem.cs (1)
138return _basis.DirectoryExists(directory);