Class: FileExporter

FileExporter()

Abstract class for exporting files from a drive. Make sure you use setWorkerPath() with the correct worker script.

Constructor

new FileExporter()

Source:

Classes

FileExporter

Members

(static) DEFAULT_BUFFER_SIZE

The global default buffer size to use when reading/writing on the SalmonStream.
Source:

Methods

(async) exportFile(fileToExport, exportDir, filename, deleteSource, integrity)

Export a file from the drive to the external directory path
Parameters:
Name Type Description
fileToExport The file that will be exported
exportDir The external directory the file will be exported to
filename The filename to use
deleteSource Delete the source file when the export finishes successfully
integrity True to verify integrity
Source:

getError(err)

Override with your specific error transformation
Parameters:
Name Type Description
err The error
Source:
Returns:

stop()

Source: