lucky_flow
lucky_flow copied to clipboard
Unable to create directory: './tmp/screenshots': File exists
I'm running a test and spawned multiple Flows at the same time, and after the first one spawned, the rest started throwing this error:
Unable to create directory: './tmp/screenshots': File exists
That error happens when attempting to make a directory with the same name as a file in that directory so it seems like you have a file with the name screenshots for some reason.
Another problem would be that we delete the screenshots directory before making it which could be causing this issue though I have no idea how
https://github.com/luckyframework/lucky_flow/blob/9c4ca1d5d72aac50f676e1f6efa287148e4fc21a/src/lucky_flow/server.cr#L59-L62
We have recently changed how we do screenshots so this might be fixed. Mainly we no longer delete the directly. https://github.com/luckyframework/lucky_flow/commit/da9c94776ab00a531796e15cb79f4f841ac5cd41