Create zip with empty directory
ryanlin1986 opened this issue · comments
ryan lin commented
For example, I just want to create empty directory named test, the following code does not work.
zipSync({
test: {}
})
101arrowz commented
This is probably something that should be supported for consistency, but you can do this instead:
zipSync({
'test/': new Uint8Array(0)
})
101arrowz commented
Added support for the original syntax in v0.7.3. Thanks for the feature request!