Skip to content

Commit

Permalink
Fix for bug related to unzipped assets
Browse files Browse the repository at this point in the history
  • Loading branch information
floeschau committed Aug 5, 2024
1 parent 5a665d4 commit 32d2713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Stars.Console/Operations/CopyOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
5 changes: 3 additions & 2 deletions src/Stars.Services/Processing/ProcessingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -31,9 +32,9 @@ public ProcessingService(ILogger<ProcessingService> logger, ProcessingManager pr
Parameters = new ProcessingServiceParameters();
}

public async Task<StacNode> ExtractArchiveAsync(StacItemNode stacItemNode, IDestination destination, StacStoreService storeService, CancellationToken ct)
public async Task<StacItemNode> 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;
Expand Down

0 comments on commit 32d2713

Please sign in to comment.