开发者

File library that help creating paths

开发者 https://www.devze.com 2022-12-24 23:57 出处:网络
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.Ho

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()

0

精彩评论

暂无评论...
验证码 换一张
取 消