FitsManager.get_files(folders, extension, scan=None, depth=0)[source]#

Return paths of files with specific extension in the specified folder(s)

  • folders (str or list of str) – path or list of paths of folders to look into

  • extension (str) – wildcard pattern for file extension

  • scan (function, optional) – function to use, called on each folder path, by default None

  • depth (int, optional) – number of sub-folders to look into, by default 0