I was using DropboxClient.Files.ListFolderAsync(path) method to list all folders with Dropbox.Api. Now, I can't see shared folders. Any help would be greatly appreciated.
@burcubolek A "path/not_found" Dropbox API error indicates that the API call failed because there was nothing currently found at the specified path in the connected account under the relevant root. For example, this can happen if there's a mistake or typo in the path value the app supplies, if the file/folder has been renamed, moved, or deleted from that path, if the app is not connected to the correct account for that particular path, etc.
path
When specifying the path, make sure you provide the full and accurate path for the desired file under the relevant root. For example, if you have a file named "example.csv" inside a folder named "folder", the path would be "/folder/example.csv". You can find more information on path formats here.
"/folder/example.csv"
Here are several things you can check in particular to debug this:
""
path_lower
id
"/Apps/<app folder name>/folder/example.csv"
Hi @burcubolek,
Did you try with DropboxClient.Files.ListFolderContinueAsync after initial DropboxClient.Files.ListFolderAsync? 🤔 If not try it. 😉
Good luck.
@Здравко wrote: Hi @burcubolek,Did you try with DropboxClient.Files.ListFolderContinueAsync after initial DropboxClient.Files.ListFolderAsync? 🤔 If not try it. 😉Good luck.
yes, actually my code is like that : private async Task<DropboxApi.Files.ListFolderResult> listAllFolders(string path){var list = await client.Files.ListFolderAsync(path);bool hasMore = list.HasMore;var cursor = list.Cursor;while (hasMore){var continueList = await client.Files.ListFolderContinueAsync(cursor);cursor = continueList.Cursor;hasMore = continueList.HasMore;foreach (var i in continueList.Entries){list.Entries.Add(i);}}return list;}
it was working like a month ago. it was listing all the folders including shared folders. now, it's not working. I am trying to figure out why. its giving "path/not_found/..." error.
Hi again @burcubolek,
Your code looks good.
@burcubolek wrote:... I am trying to figure out why. its giving "path/not_found/..." error.
... I am trying to figure out why. its giving "path/not_found/..." error.
Here we have something different! Where you know from that your parameter is correct? Did you check it? If not, do it. 😉
Hope this helps.