iwfm.file_validate_path

iwfm.file_validate_path(output_file)[source]

Validate output file path and create parent directories if needed.

Parameters:

output_file (str) – Path to the output file

Raises:
  • ValueError – If the path exists but is not a file.

  • OSError – If the parent directories cannot be created.