Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output file bug in image generation tool/task #505

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

andrewfrench
Copy link
Member

The image generation task and tool accept output_file configurations which specify where on the filesystem to store the generated image. This field can include a directory prefix like images/image.png, in which case ./images/ will be created if necessary. In the case where no directory prefix is provided, like image.png, the file should be placed in the current directory. Instead, the tool/task attempted to create a parent directory with empty name "", causing an exception. This updates the code paths to include a check, ignoring empty requests to mkdirs.

@andrewfrench andrewfrench changed the title Fix cwd output file bug in image generation tool/task Fix output file bug in image generation tool/task Dec 14, 2023
@andrewfrench andrewfrench merged commit bd3deb2 into dev Dec 15, 2023
@andrewfrench andrewfrench deleted the french/fix-output-dir branch December 15, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants