Today I read an interesting blog article about mkdirs issues, that reminded me of some grief I have taken from the said method.
Basically, in short mkdirs is not thread safe, and will create every directory along the way - which is kinda powerful and dangerous.
I've had a couple of situations where after a typo I've been trying to find where the directories were created!
On the server, I tend to rely on the directories being created during initialisation!