Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The method readdir() not working, returning 400 and no error... #70

Open
moreofmorris opened this issue Jul 22, 2013 · 1 comment
Open

Comments

@moreofmorris
Copy link

Hey.

The readdir() method is not working it seems. Everything else in the API is returning nicely, but with readdir() I simply get a 400 status with nothing else returned. If it returned an error I could then try and diagnose the problem. At present I get [] and that's it.

As for it not working, I've tried adding the root (which is 'dropbox' like everything else) but nothing happens.

Thanks! James

@charliebecker
Copy link

I found that you need to modify the self.metadata call in the readdir section to include {root: options.root}. The issue is the readdir method calls the metadata method but fails to pass the root option.

          self.metadata(path, {root: options.root}, function (status, reply) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants