[PR #450] AddAllFromDirectoryContentOnly extension method for IWritableArchive #1033

Open
opened 2026-01-29 22:18:44 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/450
Author: @iron9light
Created: 5/20/2019
Status: 🔄 Open

Base: masterHead: addcontentonly


📝 Commits (3)

  • 489ad88 New extension method for IWritableArchive. Only write content (will ignore timestamp). This method is used to make sure same contents of a directory will always output the same binary.
  • 5af213a Add WriteAllContentOnly extension method for IWriter. And fix a bug.
  • 8130f64 Remove ContentOnly method and add bool contentOnly = false parameter

📊 Changes

2 files changed (+67 additions, -22 deletions)

View changed files

📝 src/SharpCompress/Archives/IWritableArchiveExtensions.cs (+34 -11)
📝 src/SharpCompress/Writers/IWriterExtensions.cs (+33 -11)

📄 Description

Only write content (will ignore timestamp). This method is used to make sure same contents of a directory will always output the same binary.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/450 **Author:** [@iron9light](https://github.com/iron9light) **Created:** 5/20/2019 **Status:** 🔄 Open **Base:** `master` ← **Head:** `addcontentonly` --- ### 📝 Commits (3) - [`489ad88`](https://github.com/adamhathcock/sharpcompress/commit/489ad883e9ffb913cff877739bc52ed3802dfc86) New extension method for IWritableArchive. Only write content (will ignore timestamp). This method is used to make sure same contents of a directory will always output the same binary. - [`5af213a`](https://github.com/adamhathcock/sharpcompress/commit/5af213aeb98f1853e78de93ef1073a55f7ebbc73) Add WriteAllContentOnly extension method for IWriter. And fix a bug. - [`8130f64`](https://github.com/adamhathcock/sharpcompress/commit/8130f64612a232647fa8fe2ad0f05a72e5b3ad2c) Remove ContentOnly method and add `bool contentOnly = false` parameter ### 📊 Changes **2 files changed** (+67 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Archives/IWritableArchiveExtensions.cs` (+34 -11) 📝 `src/SharpCompress/Writers/IWriterExtensions.cs` (+33 -11) </details> ### 📄 Description Only write content (will ignore timestamp). This method is used to make sure same contents of a directory will always output the same binary. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:18:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1033