faculty.datasets.glob

faculty.datasets.glob(pattern, prefix='/', project_id=None, show_hidden=False, object_client=None)

List contents of project datasets that match a glob pattern.

Parameters
patternstr

The pattern that contents need to match.

prefixstr, optional

List only files in the project datasets that have this prefix. Default behaviour is to list all files.

project_idstr, optional

The project to list files from. You need to have access to this project for it to work. Defaults to the project set by FACULTY_PROJECT_ID in your environment.

show_hiddenbool, optional

Include hidden files in the output. Defaults to False.

object_clientfaculty.clients.object.ObjectClient, optional

Advanced - can be used to benefit from caching in chain interactions with datasets.

Returns
list

The list of files from the project that match the glob pattern.