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