Get relative filepaths of files in a directory, and sub-directories, with the given extension.
extname (str) – Extension name (e.g. ‘txt’, ‘rst’). Extension comparison is case-insensitive.
str
root_dir (str, optional) – Root directory. Current working directory by default.
filepaths – File paths, relative to root_dir, with the given extension.
root_dir
list of str
list