pyvale.common.util module¶
- check_output_directory(output_basepath, output_prefix, print_level)[source]¶
Check for existing output files in a directory and prompt user confirmation before overwriting.
This function verifies whether the specified output directory exists and checks for any existing files that match a given prefix and have .csv or .dic2d extensions. If such files are found, a list is displayed and the user is prompted to confirm whether to continue. If the user declines, the program exits to prevent data loss.
- Parameters:
- Raises:
SystemExit – If the output directory does not exist or the user chooses not to proceed after being warned about existing files.