briefly icon indicating copy to clipboard operation
briefly copied to clipboard

Received {:too_many_attempts, \\\"/tmp/briefly-1648\\\", 10}\"} - doesn't look recoverable

Open Sinc63 opened this issue 3 years ago • 2 comments

I'm using briefly to create a temporary directory for my app. Got an error message that there were too many attempts to create the directory. Looking at the code it looks like when open gets back an error code trying to create a directory or file it just tries again 10 times, without actually changing any parameters that would make it more likely to succeed. If it doesn't have write access or the directory already exists, surely it should be doing something to either accept that condition or try somewhere else?

In my case I have: drwxr-xr-x 6 root root 225 Mar 24 14:07 /tmp/briefly-1648 and it is March 25th if that matters.

I'm going to delete the 1648 directory and try again, but I feel like a fix is needed to try a different name if the current name exists.

Sinc63 avatar Mar 25 '22 14:03 Sinc63