Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

fstream.Reader(path) includes directory #23

Open
shevchuk opened this issue Jun 27, 2014 · 3 comments
Open

fstream.Reader(path) includes directory #23

shevchuk opened this issue Jun 27, 2014 · 3 comments

Comments

@shevchuk
Copy link

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
Copy link

orospakr commented Aug 5, 2014

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

@llun
Copy link

llun commented Sep 8, 2014

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

@floatdrop
Copy link

Also you can pass fromBase property to tar module.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants