DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Marcos has posted 4 posts at DZone. View Full User Profile

List The 10 Most Recent Files: Groovy Version.

08.15.2008
| 7071 views |
  • submit to reddit
        
def recents = new File(".").listFiles().findAll { it.file }.sort { it.lastModified() }.reverse()[0..9]