Monday, April 23, 2012

Java mkdir -p equivalent

What's the java-esque way to create a director(ies), and don't complain if it exist?



Quoting the man for mkdir:



-p    Create intermediate directories as required... with this option 
specified, no error will be reported if a directory given as an
operand already exists.




No comments:

Post a Comment