/oss · 1 merged

maugenst/zip-a-folder

A Node.js library that packs a whole folder into a zip or tar file.

the project on GitHub (opens in a new tab)
  1. 27 Nov 2026

    Long file paths survive in tar archives

    What was broken
    Tar files cut every path at 100 characters. Two files with long, similar paths got the same name, so unpacking kept only one of them.
    What I changed
    I made it record the full path in a standard extra header that tar tools read.
    Why it matters
    Folders with deep paths, like node_modules, unpack with every file.

    see the code, #82 (opens in a new tab)

← every project