In the Dropbox API v2, File and Folder Metadata contain a path_lower property which specifies the unique path for that file. However, if I have called filesListFolder to retrieve a folder listing, and then need to check whether a path exists in the folder, how do I correctly convert the path to lowercase according to the rules that Dropbox servers use to determine what is a lowercase path. In other words, I don't want to call filesGetMetadata just because the specified path has different casing, but I also don't want to return metadata for the wrong file just because I incorrectly converted it to lowercase.
I'm using the Javascript API.