blog rss feed

Reading another blog about mkdirs in java reminds me of a gotcha

Author: Dave Cherry last modified
Keywords: gotcha java

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!

Please leave a comment



Search

Blog calendar

blog: previous month March 2010 blog: next month
su mo tu we th fr sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31