List of files in a folder

gl_list_files(project, path = "", ref = get_main(), ...)

Arguments

project

id (preferred way) or name of the project. Not repository name.

path

path of the folder

ref

name of ref (commit branch or tag). Default to 'main'.

...

passed on to gitlab() API call

Value

Tibble of files available in the branch with descriptive variables.

Examples

if (FALSE) {
# Set GitLab connection for examples
set_gitlab_connection(
  gitlab_url = "https://gitlab.com",
  private_token = Sys.getenv("GITLAB_COM_TOKEN")
)

gl_list_files(project = "<<your-project-id>>", path = "<<path-to-folder>>")
}