public PhysicalAppDataFolder( IPlatoFileSystem parentFileSystem, ILogger <PhysicalAppDataFolder> logger) { _logger = logger; if (!parentFileSystem.DirectoryExists(InternalRootPath)) { parentFileSystem.CreateDirectory(InternalRootPath); } var root = parentFileSystem.GetDirectoryInfo(InternalRootPath).FullName; _fileSystem = new PlatoFileSystem(root, new PhysicalFileProvider(root), _logger); }
public PhysicalSitesFolder( IPlatoFileSystem parentFileSystem, ILogger <PhysicalSitesFolder> logger, IHostEnvironment hostEnvironment) { _logger = logger; _hostEnvironment = hostEnvironment; if (!parentFileSystem.DirectoryExists(InternalRootPath)) { parentFileSystem.CreateDirectory(InternalRootPath); } var root = parentFileSystem.GetDirectoryInfo(InternalRootPath).FullName; _fileSystem = new PlatoFileSystem(root, new PhysicalFileProvider(root), _logger); }
public void CreateDirectory(string path) { _fileSystem.CreateDirectory(path); }