Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:42:08+00:00 2026-06-04T23:42:08+00:00

I use Dropbox API and I need to list all files inside a folder

  • 0

I use Dropbox API and I need to list all files inside a folder , when I use metaData method using var_dump();
like : var_dump($metaData);

I get these:

object(stdClass)#26 (9) { 
    ["hash"]=> string(32) "d36517b72d827dc28b1e0681a23e463a" 
    ["thumb_exists"]=> bool(false) 
    ["bytes"]=> int(0) 
    ["path"]=> string(1) "/" 
    ["is_dir"]=> bool(true) 
    ["size"]=> string(7) "0 bytes" 
    ["root"]=> string(10) "app_folder" 
    ["contents"]=> array(1) { 
        [0]=> object(stdClass)#27 (12) { 
            ["revision"]=> int(1) 
            ["rev"]=> string(9) "10815f504"  
            ["thumb_exists"]=> bool(false)  
            ["bytes"]=> int(7332680)  
            ["modified"]=> string(31) "Sun, 03 Jun 2012 17:51:47 +0000"  
            ["client_mtime"]=> string(31) "Sun, 03 Jun 2012 17:51:47 +0000"  
            ["path"]=> string(9) "/etmh.pdf"  
            ["is_dir"]=> bool(false)  
            ["icon"]=> string(18) "page_white_acrobat"  
            ["root"]=> string(7) "dropbox"  
            ["mime_type"]=> string(15) "application/pdf"  
            ["size"]=> string(4) "7 MB"  
        }  
    } 
    ["icon"]=> string(6) "folder" 
} 

How can I deal with these data , for example I need to list all files in this folder
, now , there is only one file in the example above ([“path”]=> string(9) “/etmh.pdf” :: [“mime_type”]=> string(15) “application/pdf” )

I need some thing like foreach to get and deal with all data ..

Thank you ..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:42:10+00:00Added an answer on June 4, 2026 at 11:42 pm

    You can use the function get_object_vars() to extract variables from an object.

    Documentation link http://de.php.net/manual/en/function.get-object-vars.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to use Dropbox to sync selected local files? I like
I'm trying to use a system like bootstrap, but using .data() method to attach
I use DropBox and I've had some trouble reaching to my files from other
When coding, I use Dropbox to sync folder in which I keep my projects
I am using Apache HTTP components (4.1-alpha2) to upload a files to dropbox. This
I'm trying to use the Dropbox API for the first time, but i'm getting
Is Dropbox just making use of iOS libraries (iBooks code?) to read .doc/.docx files
This is to be able to use Tortoise Git on existing files on Dropbox.
I develop my project at ~/Dropbox/db/. I need to move the folder continuously to
If I use the Dropbox API in my iOS app does this require me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.