DownloadFile
Download a file from a given repository.
Sample
The 'Path' parameter is required, and must be relative to the repository root without a preceding '/'.
EXECUTE [Repository_MyRepository].[DownloadFile] LocalPath='/tmp/file.txt', Branch='main', Path='ReadMe.md'
Alternatively, set the connection property Schema to the desired repository.
EXECUTE [DownloadFile] LocalPath='C:/Users/CData/Desktop/file.txt', Branch='main', Path='src/Main.java'
Input
Name | Type | Description |
Path | String | The file path, relative to the repository root. |
Branch | String | The branch to download the file from. Defaults to 'main'.
デフォルト値はmainです。 |
LocalPath | String | The absolute path where the file will be saved. |
Result Set Columns
Name | Type | Description |
Success | Boolean | Indicates whether or not the operation executed successfully. |
Details | String | Any extra details on the operation's execution. |
FileData | String | If the LocalPath and FileStream inputs are empty, file data will be output as BASE64. |