When running this project, I got an error because the output folder had not been created. I added a line to check if the output folder exists and create it if needed.