node-tar icon indicating copy to clipboard operation
node-tar copied to clipboard

[FEATURE] customizable file header in `tar.c`

Open davidkhala opened this issue 2 years ago • 0 comments

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
...

davidkhala avatar Apr 25 '22 02:04 davidkhala