No Path equivalent to File.mkdirs() ?
Alan Bateman
Alan.Bateman at Sun.COM
Sat May 2 04:43:02 PDT 2009
Talden wrote:
> :
> Given how many projects will be using File.mkdirs() and accepting the
> possibility of partial success, this really is needed. A separate
> IOException subtype to detail partial success should probably be
> included (and should nest the cause of failure).
>
> I would hate to see every project creating their own solution to this.
>
We can easily add a static method to Files that works like mkdir -p.
It's not difficult but you are right that projects shouldn't need to
have to re-implement it when they need it.
-Alan.
More information about the nio-dev
mailing list