sintaxi/node-dbox — pull request #49 by newleafdigital (2012-09-28 20:41:06+00:00)
Title: Add readdir options: recursive, details

This adds an `options` parameter to `client.readdir`, with 2 options:

- `recursive`: Added because a recursive traversal of a user's entire Dropbox can be terrible for performance. In our case we want the user to traverse manually only as deeply as needed.
- `details`: if true, returns the whole `item` object for each item, not just the path.

All of this is added in a completely backwards-compatible way, maintaining the original behavior for users who don't explicitly specify these parameters.