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

[FEATURE] customizable file header in tar.c #316

Open
davidkhala opened this issue Apr 25, 2022 · 0 comments
Open

[FEATURE] customizable file header in tar.c #316

davidkhala opened this issue Apr 25, 2022 · 0 comments
Labels
Enhancement new feature or improvement

Comments

@davidkhala
Copy link

What / Why

There is not equivalent like 'onentry' listener of tar.x in tar.c option
So develper might not be able to have a fine-grain control on how each file entry will be added to archive, especially for file header

An golang example here is to list out what parameters we want to manipulate
https://go.dev/src/archive/tar/common.go

When

n/a

Where

tar.c(...

How

Current Behavior

we can have a archive level control flag in options like portable, nomtime, mode

Expected Behavior

add a new options like

onentry: (entry)=>{}

Who

n/a

Drawback

let developer to make good use of low-level API like

class tar.Header
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement new feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants