List of files in a folder
gl_list_files(project, path = "", ref = get_main(), ...)
id (preferred way) or name of the project. Not repository name.
path of the folder
name of ref (commit branch or tag). Default to 'main'.
passed on to gitlab()
API call
Tibble of files available in the branch with descriptive variables.
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>>")
}