Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I see some responses of checking if the file exists via DBFileSystem over internet, but this was in Sync API which is not available now. There is nothing I am able to find the new DropboxSDK.framework for checking if a file or folder exists before creating a new one. I can use tricks to do this, but is there any official method to do this ? Further, I've tried to use a trick of loading metadata for a non-existent path to see if an error comes in response which can be used to determine the specific file or folder does not exist. But, the Dropbox SDK fails saying that it is not able to create the path for query as it is not existing. However, this message is only seen as a warning and not in any callback to act upon. Can anyone help on this ?
I think you're on the right track. You should call loadMetadata
on the path you're interested in, and then the loadMetadataFailedWithError
method on your delegate should be invoked with the error that the path doesn't exist. See https://www.dropbox.com/developers/core/start/ios#listing.
Steve,
I've tried loadMetaData method, it is calling the delegate and showing proper error. Yesterday, it wasn't getting called and SDK was only throwing warning and silently failing. Could be my mistake somewhere. Thanks and sorry for bothering on such small stuff.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!