def list_files(self, dataset_id, glob="<STR_LIT:.>", is_dir=False):
data = {<EOL>"<STR_LIT:list>": {<EOL>"<STR_LIT>": glob,<EOL>"<STR_LIT>": is_dir<EOL>}<EOL>}<EOL>return self._get_success_json(self._post_json(routes.list_files(dataset_id), data, failure_message="<STR_LIT>".format(dataset_id)))['<STR_LIT>']<EOL>
List matched filenames in a dataset on Citrination.

:param dataset_id: The ID of the dataset to search for files.
:type dataset_id: int
:param glob: A pattern which will be matched against files in the dataset.
:type glob: str
:param is_dir: A boolean indicating whether or not the pattern should match against the beginning of paths in the dataset.
:type is_dir: bool
:return: A list of filepaths in the dataset matching the provided glob.
:rtype: list of strings