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
| Name | Type | Description |
|---|---|---|
| fromInputsPath | storage.DataReference | The remote path from which the data should be downloaded. This specifies the source location of the data. |
| outputPrefix | storage.DataReference | The prefix to be used for the output files. This helps organize the downloaded data. |
| toLocalPath | string | The local directory path where the downloaded data will be stored. This specifies the destination on the local file system. |
| format | core.DataLoadingConfig_LiteralMapFormat | The format in which the data should be downloaded. This ensures the data is processed and stored in the desired structure. |
| inputInterface | *core.VariableMap | A 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
| Type | Description |
|---|---|
[]string, error | A slice of strings containing the command-line arguments for the download operation, or an error if the input interface is missing or marshaling fails. |