aheckmann / gridfs-stream

Easily stream files to and from MongoDB
MIT License
615 stars 120 forks source link

Reading the contents of a GFS directory? #77

Closed kemalcany closed 9 years ago

kemalcany commented 9 years ago

Hello guys,

So createReadStream requires at least and _id or the filename to read the file from gfs.

What happens if we don't know the filename (neither the _id) but we want to read a file giving a directory path as the root option instead?

To put it differently, is it possible to read the contents of a gfs directory? Does anyone have any idea?

Cheers! K

Reggino commented 9 years ago

gfs doesn't do directories :-)