There's a race if the directory gets added between the call to .exists and the call to .mkdirs. What happens in this case? I'm assuming it matters since there's the .exists call.

If .mkdirs can handle this just fine, then we can remove the .exists call. 

If it doesn't, we should test and workaround the behaviour.