Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Victor V.3's avatar
Victor V.3
Explorer | Level 3
10 years ago
Solved

FileMetadata - path display method

Hi, 

 

My question is related to -> https://www.dropboxforum.com/t5/API-support/Any-way-to-get-mixed-case-path-for-a-file/m-p/158703 

 

I have the following piece of code (using the java sdk v2):

result.getEntries().stream().forEach(m -> {

                if (m instanceof DeletedMetadata) {

                    LOGGER.info("[DBX WEBHOOKS] Deleted: " + m.getPathDisplay());
                    flush(m.getPathDisplay());

                } 

My dbx path is : /Folder1/Folder2/Folder3/Folder4/File Name.xlsx

 

But when executing the above code, the .getPathDisplay() method returns : 

/Folder1/folder2/folder3/Folder4/File Name.xlsx

 

For some reason, i get a lower case first letter for folder2 and folder3.

My app runs under linux, and because the path is not matching exactly, the next executed operation fails (removing the file).

 

Do you know what could be the reason for this ?

 

thanks, 

-victor

 

2 Replies

Replies have been turned off for this discussion

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!