Skip to content

compile_proto.remove_stale_generated_files

Full path: schola.scripts.utils.compile_proto.remove_stale_generated_files

Delete generated artifacts in folder that are not in expected_files.

remove_stale_generated_files(folder, expected_files, suffixes)

Parameters

  • folder (pathlib.Path) - Directory to scan (non-recursive).

  • expected_files (set) - Basenames that should be kept.

  • suffixes (tuple) - File suffixes to consider for deletion (e.g. “.pb.h”).