Deleting all files and subdirectories


/ Published in: Groovy
Save to your folder(s)

This (almost) one-liner cascades into all subdirectories and deletes the files first, then the directories. Makes deleting a directory really easy. This was originally posted by John Wilson into the Groovy user list.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.