Skip to content
Snippets Groups Projects

Account recovery/backup feature

8 files
+ 85
134
Compare changes
  • Side-by-side
  • Inline

Files

@@ -96,8 +96,6 @@ public struct DropboxService: DropboxInterface {
extension DropboxService {
private func folderExists() async throws -> Bool {
print(">>> private func folderExists() async throws -> Bool {")
guard let client = DropboxClientsManager.authorizedClient else { fatalError() }
return try await withCheckedThrowingContinuation { continuation in
@@ -120,8 +118,6 @@ extension DropboxService {
}
private func createFolder() async throws {
print(">>> private func createFolder() async throws {")
guard let client = DropboxClientsManager.authorizedClient else { fatalError() }
return try await withCheckedThrowingContinuation { continuation in
@@ -139,8 +135,6 @@ extension DropboxService {
}
private func fetchMetadata() async throws -> DropboxMetadata? {
print(">>> private func fetchMetadata() async throws -> DropboxMetadata? {")
guard let client = DropboxClientsManager.authorizedClient else { fatalError() }
return try await withCheckedThrowingContinuation { continuation in
@@ -168,8 +162,6 @@ extension DropboxService {
}
private func fetchBackup() async throws -> Data {
print(">>> private func fetchBackup() async throws -> Data {")
guard let client = DropboxClientsManager.authorizedClient else { fatalError() }
return try await withCheckedThrowingContinuation { continuation in
@@ -189,8 +181,6 @@ extension DropboxService {
}
private func upload(data: Data) async throws -> DropboxMetadata {
print(">>> private func upload(data: Data) async throws -> DropboxMetadata {")
guard let client = DropboxClientsManager.authorizedClient else { fatalError() }
return try await withCheckedThrowingContinuation { continuation in
Loading