public void EnsureCacheDirectory() { _logger.LogDebug("Checking if valid Cache directory: {CacheDirectory}", CacheDirectory); if (!DirectoryService.ExistOrCreate(CacheDirectory)) { _logger.LogError("Cache directory {CacheDirectory} is not accessible or does not exist. Creating...", CacheDirectory); } }
private static void ExtractArchiveEntities(IEnumerable <IArchiveEntry> entries, string extractPath) { DirectoryService.ExistOrCreate(extractPath); foreach (var entry in entries) { entry.WriteToDirectory(extractPath, new ExtractionOptions() { ExtractFullPath = false, Overwrite = false }); } }