downloadContentVersion
downloadContentVersion(
targetOrgConnection,contentVersionDownload,downloadDirectory):Promise<string>
Defined in: contentVersionUtils.ts:97
Download a ContentVersion’s file data to a local directory.
Parameters
Section titled “Parameters”targetOrgConnection
Section titled “targetOrgConnection”Connection
The org connection to download from.
contentVersionDownload
Section titled “contentVersionDownload”The ContentVersion to download; its Id, Title,
ContentDocumentId, and FileExtension are used to build the output file path.
downloadDirectory
Section titled “downloadDirectory”string
The local directory to write the file into.
Returns
Section titled “Returns”Promise<string>
The local path the file was written to.
Throws
Section titled “Throws”If the org returns a non-2xx response, before any file is created.