Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Delete non-empty directory: better solution than traversal?

416044Jun 5 2007 — edited Jun 12 2007
So far, I'm only able to delete a directory via File.delete() when I delete each single file in this directory and recursively in any subdirectories. I wonder if there is a better/easier way to delete non-empty directories?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2007
Added on Jun 5 2007
15 comments
554 views