cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FileMetadata - path display method

FileMetadata - path display method

Victor V.3
Explorer | Level 3

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

 

1 Accepted Solution

Accepted Solutions

Re: FileMetadata - path display method

Greg-DB
Dropboxer

Unfortunately due to some specifics of how Dropbox is implemented, not all of the path components can be guaranteed to have the expected casing. 

 

You can find more information on this in the "Path formats" section under:

 

https://www.dropbox.com/developers/documentation/http/documentation#formats

 

There's also some information in the documentation for "path_display" if you expand "FileMetadata, e.g., under: 

 

https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata

View solution in original post

2 Replies 2

Re: FileMetadata - path display method

Greg-DB
Dropboxer

Unfortunately due to some specifics of how Dropbox is implemented, not all of the path components can be guaranteed to have the expected casing. 

 

You can find more information on this in the "Path formats" section under:

 

https://www.dropbox.com/developers/documentation/http/documentation#formats

 

There's also some information in the documentation for "path_display" if you expand "FileMetadata, e.g., under: 

 

https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata

View solution in original post

Re: FileMetadata - path display method

Victor V.3
Explorer | Level 3
Thanks for your reply.

-vv
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Victor V.3 Explorer | Level 3
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?