Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $path = '/Unfiled Documents/test-folder';
- $sortedpath='/Sorted';
- $listFolderContents = $dropbox->listFolder($path);
- //Get list of files and folders
- $items = $listFolderContents->getItems();
- //Get All Items from /Unfiled documents
- $all_items=$items->all();
- //Get name of Each Folder from /Unfiled Document
- print "<pre>";
- print_r($all_items);
- print "</pre>";
- $i = gettype($all_items);
- echo "$i";
- if(empty($all_items)){
- echo "hello";
- }else{
- echo "else";
- }
Add Comment
Please, Sign In to add comment