Class

DropboxSync

DropboxSync()

Constructor

# new DropboxSync()

View Source backend/cloud_sync/dropbox_sync.js, line 32

Extends

Methods

# async _withRetry(apiCall, operationName, trackRetries)

Execute an API call with retry logic and exponential backoff.

Parameters:
Name Type Default Description
apiCall function

Async function that performs the API call

operationName string API call

Name of the operation for logging

trackRetries boolean false

Whether to return {result, retryCount} instead of the plain result

Overrides:

View Source backend/cloud_sync/remote_file_sync.js, line 122

# async listFolderEntries(remotePath) → {Promise.<Array.<{name: string, path: string, isFolder: boolean, size: number}>>}

List the direct children of a remote folder.

Parameters:
Name Type Description
remotePath string

folder path ('' or '/' for the root), in the same form as accepted by downloadFile()

Overrides:

View Source backend/cloud_sync/remote_file_sync.js, line 76

an error with notFound = true if the folder does not exist

path of each entry can be passed to listFolderEntries() / downloadFile() again.

Promise.<Array.<{name: string, path: string, isFolder: boolean, size: number}>>

# async refreshAccessToken()

Refresh the access credentials if the provider uses expiring tokens. No-op by default.

Overrides:

View Source backend/cloud_sync/remote_file_sync.js, line 81