From 32d2713e7fb897a8fd47331ed795a62fd17afbdd Mon Sep 17 00:00:00 2001 From: floeschau Date: Mon, 5 Aug 2024 18:06:54 +0200 Subject: [PATCH] Fix for bug related to unzipped assets --- src/Stars.Console/Operations/CopyOperation.cs | 2 +- src/Stars.Services/Processing/ProcessingService.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Stars.Console/Operations/CopyOperation.cs b/src/Stars.Console/Operations/CopyOperation.cs index 6a62b85d..84f68eef 100644 --- a/src/Stars.Console/Operations/CopyOperation.cs +++ b/src/Stars.Console/Operations/CopyOperation.cs @@ -314,7 +314,7 @@ private async Task ApplyProcessing(StacItemNode stacItemNode, IDestination desti if (ExtractArchives) stacNode = await processingService.ExtractArchiveAsync(stacItemNode, destination, storeService, ct); if (Harvest) - stacNode = await processingService.ExtractMetadataAsync(stacItemNode as StacItemNode, destination, storeService, ct); + stacNode = await processingService.ExtractMetadataAsync(stacNode as StacItemNode, destination, storeService, ct); if (AssetsFiltersOut != null && AssetsFiltersOut.Count() > 0) { diff --git a/src/Stars.Services/Processing/ProcessingService.cs b/src/Stars.Services/Processing/ProcessingService.cs index d91ce366..008319d7 100644 --- a/src/Stars.Services/Processing/ProcessingService.cs +++ b/src/Stars.Services/Processing/ProcessingService.cs @@ -4,6 +4,7 @@ using System; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; @@ -31,9 +32,9 @@ public ProcessingService(ILogger logger, ProcessingManager pr Parameters = new ProcessingServiceParameters(); } - public async Task ExtractArchiveAsync(StacItemNode stacItemNode, IDestination destination, StacStoreService storeService, CancellationToken ct) + public async Task ExtractArchiveAsync(StacItemNode stacItemNode, IDestination destination, StacStoreService storeService, CancellationToken ct) { - StacNode newItemNode = stacItemNode; + StacItemNode newItemNode = stacItemNode; foreach (var processing in processingManager.GetProcessings(ProcessingType.ArchiveExtractor)) { if (!processing.CanProcess(newItemNode, destination)) continue;