You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// you can handle each `WriteError` case like the `DeleteError` cases above
574
+
case .tooManyWriteOperations:
575
+
print("Another write operation occurring at the same time prevented this from succeeding.")
576
+
case .tooManyFiles:
577
+
print("There are too many files to delete.")
574
578
case .other:
575
579
print("Unknown")
576
580
}
@@ -595,7 +599,7 @@ In the case of a network error, errors are either specific to the endpoint (as s
595
599
To determine if an error is route-specific or not, the error object should be cast as a `CallError`, and depending on the type of error, handled in the appropriate switch statement.
596
600
597
601
```Swift
598
-
client.files.delete(path: "/test/path/in/Dropbox/account").response { response, error in
602
+
client.files.deleteV2(path: "/test/path/in/Dropbox/account").response { response, error in
599
603
iflet response = response {
600
604
print(response)
601
605
} elseiflet error = error {
@@ -638,7 +642,7 @@ For example, the [/delete](https://www.dropbox.com/developers/documentation/http
638
642
To determine at runtime which subtype the `Metadata` type exists as, pass the object through a switch statement, and check for each possible class, with the result casted accordingly. See below:
639
643
640
644
```Swift
641
-
client.files.delete(path: "/test/path/in/Dropbox/account").response { response, error in
645
+
client.files.deleteV2(path: "/test/path/in/Dropbox/account").response { response, error in
0 commit comments