riesentoaster / prompt-battle-live

MIT License
0 stars 1 forks source link

Create directory for generated images if it does not exist #1

Closed laurenzse closed 5 months ago

laurenzse commented 5 months ago

Previously, displaying generated images would fail because writeFileSync does not write if the directory does not exist. This PR creates the required /images directory if it does not exist before attempting to write to it.