Breaking News
Home / Java / Java Snippets / How to create nonexistent directories recursively ?

How to create nonexistent directories recursively ?

Recursive Directory Create

The following snippet checks if a given directory exists or not. If it does not it, then creates it. It also creates any non existent directories in the path. The magic is performed by the java.io.File mkdirs() method.

 [pb_builder]

Check Also

How to progamatically get the Java version?

Snippet The key here is to use the system property java.version and get minor and …

Advertisment ad adsense adlogger