Skip to main content

DownloadCommandArgs

Constructs a slice of strings representing command-line arguments for a download operation, including source and destination paths, format, and a base64-encoded input interface.

def DownloadCommandArgs(
fromInputsPath: storage.DataReference,
outputPrefix: storage.DataReference,
toLocalPath: string,
format: core.DataLoadingConfig_LiteralMapFormat,
inputInterface: *core.VariableMap
) - > []string, error

Builds a slice of strings representing command-line arguments for the CoPilot downloader. This function is used to construct the necessary arguments to initiate a download operation from a remote location to a local path, specifying the output prefix, data format, and input interface.

Parameters

NameTypeDescription
fromInputsPathstorage.DataReferenceThe remote path from which the data should be downloaded. This specifies the source location of the data.
outputPrefixstorage.DataReferenceThe prefix to be used for the output files. This helps organize the downloaded data.
toLocalPathstringThe local directory path where the downloaded data will be stored. This specifies the destination on the local file system.
formatcore.DataLoadingConfig_LiteralMapFormatThe format in which the data should be downloaded. This ensures the data is processed and stored correctly according to the specified format.
inputInterface*core.VariableMapA pointer to a VariableMap representing the input interface required for the CoPilot downloader. This provides necessary configuration or context for the download operation; it cannot be nil.

Returns

TypeDescription
[]string, errorA slice of strings containing the command-line arguments for the download operation, or an error if the input interface is missing or marshaling fails.