Here you can find the source of getFilesFromDirectory(final String directory)
Parameter | Description |
---|---|
directory | String, directory to search |
public static File[] getFilesFromDirectory(final String directory)
//package com.java2s; //License from project: LGPL import java.io.File; public class Main { /**//from w w w .ja va2s . c o m * Get all files in the directory. * * @param directory * String, directory to search * @return File[], files in directory */ public static File[] getFilesFromDirectory(final String directory) { File dir = new File(directory); return dir.listFiles(); } }