Bear in mind java.io.File does not throw any execptions, so if the mkdir() call fails - you will not be explicitly notified. You must programmatically check it afterwards using :
Code:
File f = new File("mydir");
if (f.exists() && (!f.isFile())) {
// OK
} else {
// Something went wrong
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.