list_files
- specatalog.data_management.measurement_management.list_files(base_dir, ms_id, category='')[source]
List all files in a single measurement directory with the ID ms_id and all subdirectorys. If a category is chosen only files of this category are listed.
- Parameters:
base_dir (str or Path) – Path to the root-folder of the archive.
ms_id (str or int) – Number of the measurement.
category (str, optional) – One of the categories: [“raw”, “scripts”, “figures”, “additional_info”, “literature”] or empty. The contents of the subdirectory is listed. The default is “”.
- Raises:
ValueError – An error is raised if the category is not known.
- Returns:
filelist – List with absolute paths to all files in the (sub-)directory.
- Return type:
list