mafintosh / tar-fs

fs bindings for tar-stream
MIT License
350 stars 75 forks source link

How to handle device nodes? #71

Closed michael-ts closed 1 year ago

michael-ts commented 6 years ago

I'm using ts-far and am running into an issue where an exception is thrown when a device node is encountered in a tarball:

Error: unsupported type for dev/dsp1 (character-device)

Looking at the code, it appears that tar-fs only knows how to handle normal files, directories, and symlinks. It's not clear to me how to work around this so my program won't crash or improperly handle device nodes.

mafintosh commented 4 years ago

We could add an option to ignore those. PR welcome!