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 in the desired structure.
inputInterface*core.VariableMapA pointer to a VariableMap containing the input interface configuration. This is required for the CoPilot Downloader to understand the data structure and processing needs.

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.