url_file_list

cosmo_utils.utils.web_utils.url_file_list(url, ext)[source] [edit on github]

Lists the files from a URL taht have a specific file extension.

Parameters:

url : str

String of the URL

ext : str

File extension of the files in the URL.

Returns:

files_arr : numpy.ndarray, shape (N,)

Array of the file in url that match the file extension ext.