silexlabs / unifile

Unified access to cloud storage services through a simple web API.
https://silexlabs.github.io/unifile/
MIT License
144 stars 32 forks source link

Unsupported batch action: stat #116

Open lexoyo opened 7 years ago

lexoyo commented 7 years ago

Hello The batch method in Dropbox service does not implement the stat action Is this on purpose or something missing? Thx

JbIPS commented 7 years ago

I didn't imagine it could be used but I'm not opposed to it. Now that I think of it it could be great for a listing view, but is it optimize in a connector? If the batch only calls n times the API, there is no gain in using the batch.

lexoyo commented 7 years ago

In fine I ended up using Promise.all which is fine, but the API should probably implement all the methods in batch? Not sure

JbIPS commented 7 years ago

At the beginning I only implemented batch functions that could be optimized by one of the connector. If using regular collection flow is as optimized I don't see the use of reimplementing it in batch.

Do you?