Forum Discussion

jlibe's avatar
jlibe
Explorer | Level 3
7 years ago

Calling ListFolder with id

Hi Team,

 

I try to list folder with the following path format : 

id:XXXXXXXXXX

 

It returns the following unless the folder does exist (I get the id from a previous list folder call, witch gives me subfolder list)...

 

Call details :

curl -X POST https://api.dropboxapi.com/2/files/list_folder \
  --header 'Authorization: Bearer xxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{"path":"id:xxxxxxxxx"}'

 

Reponse :

{ "error_summary": "path/not_found/...", "error": { ".tag": "path", "path": { ".tag": "not_found" } } }

Can you help me on this issue please ?

 

Joris

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    I'm not sure I understand your question. What behavior do you want in this case? Do you want to be able to list the (deleted) contents of the deleted folder?

    If the folder does not exist (e.g., it was deleted), attempting to access it is supposed to fail with a 'path/not_found' indicating that it doesn't exist.
    • jlibe's avatar
      jlibe
      Explorer | Level 3

      Hi Greg,

       

      Thanks for your answer.

      Actually the folder DOES exist. It is not deleted or else...

      I just want to list its content with "id method", but it doesn't work for me.

       

      Anyone can help me ?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 23 hours ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!