Skip to content

Commit

Permalink
Add ContentChanged marker to IArchiveFile;
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecefreak3 committed Jan 11, 2025
1 parent 2da8297 commit c9526e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/lib/Konnect.Contract/Plugin/File/Archive/IArchiveFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public interface IArchiveFile : IDisposable
/// </summary>
bool IsFileDataInvalid { get; }

/// <summary>
/// Determines if the archive file was changed.
/// </summary>
bool ContentChanged { get; }

/// <summary>
/// Gets the (decompressed) file data from this file info.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Konnect/Konnect.Debug.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Konnect</id>
<version>2.1.1</version>
<version>2.1.2</version>
<description>A library containing interfaces and data models for plugins.</description>

<authors>onepiecefreak;IcySon55</authors>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Konnect/Konnect.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Konnect</id>
<version>2.1.1</version>
<version>2.1.2</version>
<description>A library containing interfaces and data models for plugins.</description>

<authors>onepiecefreak;IcySon55</authors>
Expand Down
3 changes: 3 additions & 0 deletions src/lib/Konnect/Plugin/File/Archive/ArchiveFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public UPath FilePath
/// <inheritdoc />
public bool IsFileDataInvalid => _fileInfo.FileData is { CanRead: false, CanWrite: false };

/// <inheritdoc />
public bool ContentChanged => _fileInfo.ContentChanged;

/// <summary>
/// Creates a new instance of <see cref="ArchiveFile"/>.
/// </summary>
Expand Down

0 comments on commit c9526e5

Please sign in to comment.