sibblegp / b2blaze

b2blaze
MIT License
607 stars 32 forks source link

File list prefix #20

Open dhbradshaw opened 6 years ago

dhbradshaw commented 6 years ago

Nice work here. It's fun to see the project grow.

Looking through the api for b2_list_file_names , I see that one can send a prefix over to avoid getting more files back than necessary.

Often such a prefix just provides a convenience. But it looks like a prefix is necessary if your credentials don't give you access to an entire bucket.

What do you think about exposing the prefix feature in this api? One could either extend B2FileList.all or add a sister method (perhaps B2.FileList.filter?).

sibblegp commented 6 years ago

First of all, thank you! I like this idea. I'll add it when I have some time.