Android Question Know if exist file in DropBox

netsistemas

Active Member
Licensed User
Longtime User
I downloading a file from DropBox, but if the file don't existe in dropbox, the file are created with 0 bites in local devices.

I can check if the file have 0 bites, but this is not a solution for me.
The file can exist and a don't want to overwrite or do chekck or.....

the best solution is check if exist in dropbox, download to local, and delete from dropbox. Its easy.

i try to do:
dbxFiles.getMetadata (file...)
but this method don't return nothing or compile return a inexpetared value.

ideas/solutions, please?
 

DonManfred

Expert
Licensed User
Longtime User
I think the correct way to check for an existence of an file is to get a list of the folder-content.
If the file is not listed than it is not there.
 
Upvote 0
Top