Below snippet is used to create parent directories of the file, if those are not exist.
String directoryPath = "Enter file absolute path here";
File file = new File(directoryPath);
file.getParentFile().mkdirs();
You may
like
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
No comments:
Post a Comment