• Post Reply Bookmark Topic Watch Topic
  • New Topic

File and delete()  RSS feed

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to be able to delete a directory even though the directory has sub directories.
The delete() function does not do this.
Are there any alternatives.
thank you david
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you aren't talking about a large number of children, then a simple iteration through them would be pretty easy enough to do.
What system are you working on? If it's Unix, you could always use Runtime.exec to do a rm -r *giggles as all Unix sys. admins start flailing their arms about*
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!