If two or more files are to be created at the same time within the same non-existing folder, there's a race condition between checking whether the folder exists and then creating it.
We should implement an end-to-end test using docker(-compose) for this.