Missing delete path facility
Ulf Zibis
Ulf.Zibis at gmx.de
Tue Oct 6 05:00:30 PDT 2009
Hi all,
in the new nio API there is Path#delete(). It only allows to delete a
single file or directory if empty.
If developer wants to delete a complete subtree of a path, he has to
programmatically iterate over all its elements.
Please add functionality to save developers from hand-coding those
iterations.
On http://java.sun.com/docs/books/tutorial/essential/io/legacy.html in
"Mapping java.io.File Functionality to java.nio.file"-table I find:
|File.delete| --> |Path.delete| or |Path.delete(boolean)
|But there is no expression for delete(boolean) in current
implementation of Path.
-Ulf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20091006/b6542b5d/attachment.html
More information about the nio-discuss
mailing list