Class: AesFileExporter

AesFileExporter()

Exports files from a drive. Make sure you use setWorkerPath() with the correct worker script.

Constructor

new AesFileExporter()

Source:

Classes

AesFileExporter

Methods

getError(err) → {any}

Tranform an error that can be thrown from a web worker.
Parameters:
Name Type Description
err any The original error
Source:
Returns:
The transformed error
Type
any

(async) getMinimumPartSize(sourceFile, targetFile) → {Promise.<number>}

Parameters:
Name Type Description
sourceFile IVirtualFile The source file
targetFile IFile The traget file
Source:
Returns:
The minimum file part.
Type
Promise.<number>

(async) getWorkerMessage(index, sourceFile, targetFile, runningThreads, partSize, fileSize, bufferSize, integrity) → {any}

Create a message for the web worker.
Parameters:
Name Type Description
index number The worker index
sourceFile IVirtualFile The source file
targetFile IFile The target file
runningThreads number The number of threads scheduled
partSize number The length of the file part that will be imported
fileSize number The file size
bufferSize number The buffer size
integrity boolean True if integrity is enabled.
Source:
Returns:
The message to be sent to the worker
Type
any

(async) onPrepare(sourceFile, integrity)

Called during preparation of export.
Parameters:
Name Type Description
sourceFile IVirtualFile The source file
integrity boolean True if integrity enabled
Source: