File library that help creating paths
I开发者_开发知识库'm looking for a file utilities library that help creating paths, i.e. if I want to create a file in "a/b/c/x/y/z", it will check if each directory exists and creates it if not.
How about reading the File javadoc
Specifically, given File foo
which represents a text file you want to create, you can execute foo.getParentFile().mkdirs()
.
File.mkdirs()
精彩评论