I am using Dropbox Ruby API. When I receive the "path" of the directories on the Dropbox server via its API, the directory paths are capitalized if they are directly under the Dropbox root directory, irrespective of whether the corresponding directory on the local computer is capitalized. Given the information on the Dropbox server, how can I achieve the corresponding path on the local computer with the correct alphabet case? Simply applying downcase to the given path does not work because some directories on the local computer might actually be capitalized.
I am using Dropbox Ruby API . When I receive the path of the
Share
You could try a case insensitive search for the file in question or just use a case insensitive regex in general. Just be sure to match the full file name unlike the example below: