May 2012 M T W T F S S « Sep 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Archives
- September 2010 (2)
- April 2010 (1)
- February 2010 (1)
- November 2009 (2)
- September 2009 (3)
- August 2009 (3)
- July 2009 (2)
- June 2009 (3)
- May 2009 (1)
- April 2009 (5)
Tag Archives: Filter files within a directory
A simple way to list/filter files
Here is a very simple and elegant way to list or filter the files in a given directory. For this use the File.listFiles() method of java.io.File class. The example below deletes all the files that end with the “.tmp” extension. … Continue reading →
Posted in Java
|
Tagged Filter files within a directory, List files in a directory in Java
|
Leave a comment