npm / fstream

Advanced FS Streaming for Node
ISC License
208 stars 43 forks source link

fstream.Reader(path) includes directory #23

Open shevchuk opened 10 years ago

shevchuk commented 10 years ago

There is no way to make reader read a subset of files excluding their parent directory. Even if fstream.Reader("./") is called it includes a parent folder.

orospakr commented 10 years ago

Just ran into this. I'm trying to make tarballs for the Docker API which expects a flat structure.

llun commented 10 years ago

fstream.Reader({ path: __dirname, root: './' }) is worked for me to exclude parent directory name.

floatdrop commented 8 years ago

Also you can pass fromBase property to tar module.