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

[Dropbox] listContents recursivly not returning subdirectory-name #81

Closed
timboven opened this issue Feb 15, 2014 · 2 comments
Closed

[Dropbox] listContents recursivly not returning subdirectory-name #81

timboven opened this issue Feb 15, 2014 · 2 comments
Labels

Comments

@timboven
Copy link

Config:Adapter = Dropbox
Contents on Dropbox:
/fileA.pdf
/subfolder/fileB.pdf

situation: $paths = $filesystem->listContents("/", true);

result: $paths contains fileA, subfolder & fileB (so far so good)

Problem: when looking at fileB, there is nothing that indicates if fileB is at the same level as fileA of inside the folder 'subfolder'.
The returned array has a property 'dirname' that is always empty and basename & path are the same.
By looking at the wiki - I would suspect that basename contains the value as it contains at the moment but I expected path to contain either '/subfolder' or the complete path ('/subfolder/fileB.pdf').

@frankdejonge
Copy link
Member

@timboven I went and setup an oauth dev setup for myself, made it a lot easier to debug. Turned out recursive listing was broken die to the prefix changes. I've corrected this and fixed the path normalisation in the process.

@frankdejonge frankdejonge reopened this Feb 16, 2014
@frankdejonge
Copy link
Member

Re-opened, clicked the wrong button.

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

No branches or pull requests

2 participants