Re: [directory-upload] Easier way to get files without complicated asynchronous traversal code (#26)

@marcoscaceres :
That seems like sugar that a library could add. I'm not against sugar -- I'm arguing for something slightly sugary in /WICG/directory-upload#10 -- but this seems heavier than a property.

Note that we went the iteration route because "smarter" primitives haven't been added to ES, like AsyncIterator (or Observable). When that happens, methods like enumerate() and enumerateDeep() would have provided the best blend of sugar and API. That's /w3c/filesystem-api#4

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/26#issuecomment-162930840

Received on Tuesday, 8 December 2015 16:09:39 UTC