Hi guys,
a trouble we have here is fairly simple to reproduce.
We're using Client.files.listFolder(recursive: true) for scanning a particular directory and its subdirectories to quickly find files with necessary extensions. It was working good and great until we noticed that it doesn't exactly work with shared folders.
listFolder(recursive: false) works just great and allows us browse, view contents and download necessary files from shared folders. But, when using listFolder(recursive: true) API simply doesn't return any files for shared folders.
For example, calling listFolder(recursive: true) on a root folder with contents like below:
- simple folder
- shared folder
- simple file
will contain files and subdirectories from "simple folder" and "simple file" but will contain nothing from "shared folder".
Calling listFolder(recursive: true) on a shared folder itself will return no files and folders. And it doesn't matter if we're scanning from an account that created the shared folder, or from an account that was invited to use the shared folder.
After trying to find something else in the SDK for listing shared folders (and failing at it), I decided to ask here. Is this a bug in the API? I suppose it is, because listFolder() doesn't require any special permissions without recursive flag set to true. Or do I miss something here?
Also, if it is a bug, could you please tell me how long do you think it will take to fix it? We're kinda getting ready to push another build into production and I REAAAAAAALLY don't want to write an awful workaround that will include sending a bunch of requests to scan the contents of a folder and its subfolders.
Is there anything I can do to help you speed up the bugfix?
Also, do you accept new contributors to SwiftyDropbox? I have a bunch of new ideas, and would be happy to help you improve the SDK.
Thanks in advance, Gregory!
Best regards,
Aibek.