If EEXIST is raised twice, it can only be something (which going possibly deleted inbetween), because otherwise (it's a file) it will exit with error in [./artifact?udc=1&ln=259-263&name=ee3766c8dd773316|!S_ISDIR(statBuf.st_mode)].
Endless cycle is not needed (would be too dangerous).