From 33ca6e2a39ba494181b0348cda8386053ae82319 Mon Sep 17 00:00:00 2001 From: floeschau Date: Wed, 2 Oct 2024 12:35:56 +0200 Subject: [PATCH] Updated dependencies (Landsat USGS search by ID and TAR archive issue) --- src/Stars.Data/Terradue.Stars.Data.csproj | 9 ++++++--- src/Stars.Services/Processing/Archive.cs | 3 +++ src/Stars.Services/Processing/ArchiveType.cs | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Stars.Data/Terradue.Stars.Data.csproj b/src/Stars.Data/Terradue.Stars.Data.csproj index 36baf9a5..8aad3ccd 100644 --- a/src/Stars.Data/Terradue.Stars.Data.csproj +++ b/src/Stars.Data/Terradue.Stars.Data.csproj @@ -33,7 +33,7 @@ - + @@ -54,9 +54,12 @@ - + + --> diff --git a/src/Stars.Services/Processing/Archive.cs b/src/Stars.Services/Processing/Archive.cs index eab2de77..929f6139 100644 --- a/src/Stars.Services/Processing/Archive.cs +++ b/src/Stars.Services/Processing/Archive.cs @@ -19,6 +19,7 @@ namespace Terradue.Stars.Services.Processing public abstract class Archive : ILocatable { public static readonly Dictionary ArchiveFileExtensions = new Dictionary() { + { ".tar", ArchiveType.Tar }, { ".tar.gz", ArchiveType.TarGzip }, { ".tgz", ArchiveType.TarGzip }, { ".tar.Z", ArchiveType.TarGzip }, @@ -48,6 +49,8 @@ internal static async Task Read(IAsset asset, ILogger logger, IResource { case ArchiveType.Zip: return new ZipArchiveAsset(asset, logger, resourceServiceProvider, fileSystem); + case ArchiveType.Tar: + return new TarArchiveAsset(asset, resourceServiceProvider, logger); case ArchiveType.TarGzip: return new TarGzipArchive(asset, resourceServiceProvider, logger); case ArchiveType.Gzip: diff --git a/src/Stars.Services/Processing/ArchiveType.cs b/src/Stars.Services/Processing/ArchiveType.cs index f70846aa..cca71686 100644 --- a/src/Stars.Services/Processing/ArchiveType.cs +++ b/src/Stars.Services/Processing/ArchiveType.cs @@ -8,6 +8,7 @@ public enum ArchiveType { None, Compress, + Tar, TarGzip, TarBzip2, Zip,