getFiles#
- pyCGM2.Utils.files.getFiles(path: str, extension: str, ignore: bool | None = None, raiseFlag: bool = False)#
- Retrieve all files with a specific extension from a directory. - Parameters:
- path (str) – The directory path to search for files. 
- extension (str) – The file extension to filter by. 
- ignore (bool, optional) – If specified, ignores files with certain criteria. Defaults to None. 
- raiseFlag (bool, optional) – If True, raises an exception if the directory is not found. Defaults to False. 
 
- Returns:
- List[str] – A list of filenames with the specified extension. 
 
