I am trying to make a dropbox integration that takes into account both the web API and the desktop client. The desktop client doesn't have an API of its own, so I have to use some hacks to get what I want. I can already map local files to online files by using the JSON file to find the root folder. As shown here https://help.dropbox.com/installs-integrations/desktop/locate-dropbox-folder
However, I would also like to know the sync progress of files. I see that whenever I sync something, the file is first downloaded to ".dropbox.cache\new_files". It seems to have some random name (which is not the ID of the file).
Is there any way to determine which file is being synced by looking in the new_files folder? The idea is to then show progress by dividing the size on disk of that file by the online file size.
Does anyone have an idea how I could match this temporary file to the actual file?