lucky_flow icon indicating copy to clipboard operation
lucky_flow copied to clipboard

Unable to create directory: './tmp/screenshots': File exists

Open jwoertink opened this issue 5 years ago • 2 comments
trafficstars

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

jwoertink avatar Oct 02 '20 17:10 jwoertink

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

matthewmcgarvey avatar Nov 19 '20 00:11 matthewmcgarvey

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

matthewmcgarvey avatar Jan 26 '22 00:01 matthewmcgarvey