Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64 feature eldritch filecompress #85

Merged
merged 24 commits into from
Feb 10, 2023
Merged

Conversation

hulto
Copy link
Collaborator

@hulto hulto commented Nov 27, 2022

What type of PR is this?

/kind feature
/kind eldritch-function

What this PR does / why we need it:

Add file compression function to eldritch.
Uses the flate2 crate to perform gzip compression.
If the source is a directory it will use the tar crate to create a tar ball in a temporary file first.

Which issue(s) this PR fixes:

Fixes #64

@hulto hulto linked an issue Nov 27, 2022 that may be closed by this pull request
Copy link
Collaborator

@Cictrone Cictrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sheesh

implants/eldritch/Cargo.toml Outdated Show resolved Hide resolved
implants/eldritch/src/file/compress_impl.rs Outdated Show resolved Hide resolved
implants/eldritch/src/file/compress_impl.rs Outdated Show resolved Hide resolved
implants/eldritch/src/file/compress_impl.rs Outdated Show resolved Hide resolved
@hulto hulto merged commit c473962 into main Feb 10, 2023
@hulto hulto deleted the 64-feature-eldritch-filecompress branch February 10, 2023 22:35
KCarretto pushed a commit that referenced this pull request Feb 1, 2024
 
64 feature eldritch filecompress (#85)

* Added docs.

* Add dir and file compression.

* Added tar directory test.

* Working compression with flate.

* Emulate buffered write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Eldritch file.compress
2 participants