How to list all folders in AllFiles
I am new to using the Box api so I apologize for the simple question. I am using the .NET sdk and I think this should be simple, so I must be missing something easy.
I am executing this line of code:
var test = await Client.FoldersManager.GetFolderItemsAsync("0", 100);
Even though there are seven folders in AllFiles the code only returns one folder. My assumption is there is some sort of sharing or permissions issue but I cannot figure out what it might be.
TIA,
Greg
-
Hi ,
A few things here:
- That method will only return the files/folders within the folder ID that you specify, not any of the subfolders. In your case you're specifying your root (0), so if there is only one folder in there and a series of folders under that then it'll return what you're seeing.
- If that's not the case, are any differences in the folders that aren't coming back and the folder that are? For instance, are the other 6 shared folders with you?
- Jon
サインインしてコメントを残してください。
コメント
1件のコメント