File IO
- codestral_ros2_gen.utils.file_io.save_code(code, output_path)[source]
Save the generated code to the given output path and set executable permissions.
This function writes the code using basic file I/O and applies chmod +x.
- Parameters:
code (str) – The generated code to save.
output_path (Path) – The file path where the code will be written.
- Returns:
True if the code is saved and made executable successfully, False otherwise.
- Return type:
bool