Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Irtiza_Khan
8 years agoExplorer | Level 4
Why Delete Method is not working according to Doc?
Hi, I am trying delete according to instruction from DropBox
client?.files.deleteV2(path: "/test/path/in/Dropbox/account").response { response, error in
if let response = response {
...
- 8 years ago
Apologies for the trouble, it looks like the SwiftyDropbox readme is a little out of date. This line:
case .routeError(let boxed, let requestId):
should instead be:
case .routeError(let boxed, let userMessage, let errorSummary, let requestId):
I'll ask the team to update that in the documentation.
`DropboxClientsManager.authorizedClient` is a singleton you can use for convenience for storing the `DropboxClient` object. The `client` variable in the examples also just refers to a `DropboxClient` object. You can use whichever you want.
Greg-DB
Dropbox Community Moderator
8 years agoApologies for the trouble, it looks like the SwiftyDropbox readme is a little out of date. This line:
case .routeError(let boxed, let requestId):
should instead be:
case .routeError(let boxed, let userMessage, let errorSummary, let requestId):
I'll ask the team to update that in the documentation.
`DropboxClientsManager.authorizedClient` is a singleton you can use for convenience for storing the `DropboxClient` object. The `client` variable in the examples also just refers to a `DropboxClient` object. You can use whichever you want.
Irtiza_Khan
8 years agoExplorer | Level 4
but when i try to check
if(client != nil){
}
else{
print("Nil")
}
Then it prints NIl in console. Why?
if(client != nil){
}
else{
print("Nil")
}
Then it prints NIl in console. Why?
- Greg-DB8 years ago
Dropbox Community Moderator
The `client` variable would just be a variable like any other in your app. If the `nil` check is coming back like that, it means it is not currently set. You need to set and manage it in your code. (For that reason, `DropboxClientsManager.authorizedClient` is generally more convenient.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
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!