Forum Discussion

pramodkr200's avatar
pramodkr200
New member | Level 2
2 years ago

Not able to fetch all files and folder

I have 40 files and folder in root folder, but I am getting only 25 from them.
I am using my app in 3 - 4 devices. Is any limitation from dropbox to access the all files and folder.

3 Replies

  • Mark's avatar
    Mark
    Icon for Super User II rankSuper User II
    2 years ago

    No there isnt at all BUT there can be restrictions based upon characters depending upon the OS. 

     

    Can you see all of the files at www.dropbox.com/home ?

  • pramodkr200's avatar
    pramodkr200
    New member | Level 2
    2 years ago


    yes I can see all files and folder on web to follow this link www.dropbox.com/home.
    But I am using this code that not response all files and folder.

        DbxClientV2 mDbxClient = new DbxClientV2(DbxRequestConfigFactory.getRequestConfig(), accessToken);
    try {
    ListFolderResult listFolderResult= mDbxClient.files().listFolder("");

    for (Metadata metadata : listFolderResult.getEntries()) {
    String fileName = metadata.getName();
    Log.i("Fetch File", "file: " + fileName);
    }
    } catch (DbxException e) {
    e.printStackTrace();
    }

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    [Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-java/issues/520 ]

     

    pramodkr200 I understand that you are attempting to list all files/folders using listFolder. Note that this functionality is paginated and you are not guaranteed to get all of the results back in a single listFolder call, so make sure you implement support for listFolderContinue as well.

    There are a few factors that can affect what/how much is returned in a single call, and that can vary over time due to a number of factors, e.g., as the state and contents of the account changes, etc, so you need to make sure you always have that implemented as documented.

    Refer to the listFolder and listFolderContinue documentation for information on doing so.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!