External module "backend/Dropbox"
Type aliases
DropboxClient
DropboxClient: Dropbox
Variables
Const Dropbox
Dropbox: Dropbox
Functions
ContinueReadingDir
- ContinueReadingDir(client: DropboxClient, path: string, res: ListFolderResult, previousEntries: string[], cb: BFSCallback<string[]>): void
-
Parameters
-
-
path: string
-
res: ListFolderResult
-
previousEntries: string[]
-
Returns void
ExtractTheFuckingError
- ExtractTheFuckingError<T>(e: Error<T>): T
-
Type parameters
Parameters
Returns T
FixPath
- FixPath(p: string): string
-
Parameters
Returns string
GetErrorMessage
- GetErrorMessage(err: Error<any>): string
-
Parameters
Returns string
LookupErrorToError
- LookupErrorToError(err: DropboxTypes.files.LookupError, p: string, msg: string): ApiError
-
Parameters
-
err: DropboxTypes.files.LookupError
-
p: string
-
msg: string
ProcessListFolderError
- ProcessListFolderError(e: Error<DropboxTypes.files.ListFolderError>, path: string, cb: BFSCallback<string[]>): void
-
Parameters
-
e: Error<DropboxTypes.files.ListFolderError>
-
path: string
-
Returns void
WriteErrorToError
- WriteErrorToError(err: DropboxTypes.files.WriteError, p: string, msg: string): ApiError
-
Parameters
-
err: DropboxTypes.files.WriteError
-
p: string
-
msg: string
HACK: Dropbox errors are FUBAR'd sometimes.
https://github.com/dropbox/dropbox-sdk-js/issues/146