Guest User

Untitled

a guest
Nov 21st, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $path = '/Unfiled Documents/test-folder';
  2. $sortedpath='/Sorted';
  3. $listFolderContents = $dropbox->listFolder($path);
  4. //Get list of files and folders
  5. $items = $listFolderContents->getItems();
  6. //Get All Items from /Unfiled documents
  7. $all_items=$items->all();
  8. //Get name of Each Folder from /Unfiled Document
  9. print "<pre>";
  10. print_r($all_items);
  11. print "</pre>";
  12. $i = gettype($all_items);
  13. echo "$i";
  14. if(empty($all_items)){
  15. echo "hello";
  16. }else{
  17. echo "else";
  18. }
Add Comment
Please, Sign In to add comment