private File[] getJpgFiles(File f){
File[] files = f.listFiles(new FilenameFilter(){
@Override
public boolean accept(File dir, String filename) {
return filename.toLowerCase().endsWith(".jpg");
}});
return files;
}
Home »
» List files in directory with specified type
List files in directory with specified type
Written By MR HARI on Jumat, 30 Agustus 2013 | 15.36
The example List all 'jpg' files in given directoty:
Related Articles
If you enjoyed this article just click here, or subscribe to receive more great content just like it.
0 komentar:
Posting Komentar