Hi! Thanks for the help! You definitely right. Split the 'path_lower' will do the job to recreate the folder hierarchy. By 'respecting folder hierarchy' I don't know how to explain ^^ but I'd like to display something like : Thank you very much for your quick reply!
... View more
Hi! I'd like to display all files of from a shared folder, using DropBox API respecting my folder hierachy. I followed 2 different ways : 1) My first idea was to use the files/list_folder endpoint (and recursive parameter as true) then files/list_folder/continue as mentionned in lot of answers here to get all files and folders. It works quite nice, but I get all files and folders regardless of the folders tree. And was not able to recreate the initial folder hierarchy by myself cause file doesn't contain his parent folder id. 2) Second idea. Get the list of the first level of folders using files/list_folder, then for each folder found, request the files/list_folder endpoint again to get the list of folder files. It works but it takes lot of time... I have got 15 folders and the all 16 requests (the root one and one for each folder) takes at least 6s !! (I use guzzle and PHP) There is a way to know the id of direct parent folder ? (case 1) Or a better way to retrieve files with better performance ? (case 2) Thanks.
... View more