From c9526e53c02316fd6521685c453cbb888d49b42d Mon Sep 17 00:00:00 2001 From: onepiecefreak3 Date: Sat, 11 Jan 2025 20:27:50 +0100 Subject: [PATCH] Add ContentChanged marker to IArchiveFile; --- src/lib/Konnect.Contract/Plugin/File/Archive/IArchiveFile.cs | 5 +++++ src/lib/Konnect/Konnect.Debug.nuspec | 2 +- src/lib/Konnect/Konnect.nuspec | 2 +- src/lib/Konnect/Plugin/File/Archive/ArchiveFile.cs | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/Konnect.Contract/Plugin/File/Archive/IArchiveFile.cs b/src/lib/Konnect.Contract/Plugin/File/Archive/IArchiveFile.cs index 79edcff8..c4407355 100644 --- a/src/lib/Konnect.Contract/Plugin/File/Archive/IArchiveFile.cs +++ b/src/lib/Konnect.Contract/Plugin/File/Archive/IArchiveFile.cs @@ -31,6 +31,11 @@ public interface IArchiveFile : IDisposable /// bool IsFileDataInvalid { get; } + /// + /// Determines if the archive file was changed. + /// + bool ContentChanged { get; } + /// /// Gets the (decompressed) file data from this file info. /// diff --git a/src/lib/Konnect/Konnect.Debug.nuspec b/src/lib/Konnect/Konnect.Debug.nuspec index fab09de4..1b14bb58 100644 --- a/src/lib/Konnect/Konnect.Debug.nuspec +++ b/src/lib/Konnect/Konnect.Debug.nuspec @@ -2,7 +2,7 @@ Konnect - 2.1.1 + 2.1.2 A library containing interfaces and data models for plugins. onepiecefreak;IcySon55 diff --git a/src/lib/Konnect/Konnect.nuspec b/src/lib/Konnect/Konnect.nuspec index 61f57ca2..b3153835 100644 --- a/src/lib/Konnect/Konnect.nuspec +++ b/src/lib/Konnect/Konnect.nuspec @@ -2,7 +2,7 @@ Konnect - 2.1.1 + 2.1.2 A library containing interfaces and data models for plugins. onepiecefreak;IcySon55 diff --git a/src/lib/Konnect/Plugin/File/Archive/ArchiveFile.cs b/src/lib/Konnect/Plugin/File/Archive/ArchiveFile.cs index 49ff0d46..ed7a7e27 100644 --- a/src/lib/Konnect/Plugin/File/Archive/ArchiveFile.cs +++ b/src/lib/Konnect/Plugin/File/Archive/ArchiveFile.cs @@ -42,6 +42,9 @@ public UPath FilePath /// public bool IsFileDataInvalid => _fileInfo.FileData is { CanRead: false, CanWrite: false }; + /// + public bool ContentChanged => _fileInfo.ContentChanged; + /// /// Creates a new instance of . ///