Google Drive Storage
class GoogleDriveStorage(context: ERROR CLASS: Symbol not found for Context, tokenProvider: DriveTokenProvider = PlayServicesTokenProvider(context), httpClient: HttpClient = BackupKitHttp.default()) : CloudStorage(source)
Google Drive app-data transport. Flat folder; paths are used verbatim as Drive file names. Uploads up to 5 MB go multipart in one request; larger ones use Drive's resumable protocol in 8 MiB chunks, streamed from disk for local files. list also removes duplicate files left by interrupted creates, keeping the newest by modified time.
Constructors
Link copied to clipboard
constructor(context: ERROR CLASS: Symbol not found for Context, tokenProvider: DriveTokenProvider = PlayServicesTokenProvider(context), httpClient: HttpClient = BackupKitHttp.default())
Functions
Link copied to clipboard
Cheap. Never touches the network.
Link copied to clipboard
Downloads into toLocalPath, replacing it. Throws CloudError.NotFound when absent.
Link copied to clipboard
No account is read; a sync engine keys identity off the marker file's Drive id instead.
Link copied to clipboard
Every file, deduplicated by path (newest wins).
Link copied to clipboard