Power BI Connector for GitHub

Build 24.0.8963

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
FileData String If the LocalPath and FileStream inputs are empty, file data will be output as BASE64.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963