Here you can find the source of getFileList(String path)
public static File[] getFileList(String path)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static File[] getFileList(String path) { File dirFile = new File(path); File[] fileList = dirFile.listFiles(); return fileList; }/*w w w . j a va 2 s.c om*/ }