@Test public void testListFile1() { String path = TestUtil.path + "temp/"; List<File> files = FileUtil.listFile(path, false); System.out.println(files); System.out.println("============="); files = FileUtil.listFile(path, true); System.out.println(files); }
public final static List<File> listFile(String path) { File file = new File(path); return listFile(file); }
FileUtil { public final static List<File> listFile(String path) { File file = new File(path); return listFile(file); } }
FileUtil { public final static List<File> listFile(String path) { File file = new File(path); return listFile(file); }  }
FileUtil { public final static List<File> listFile(String path) { File file = new File(path); return listFile(file); }  static String fileMD5(File file); final static int countLines(File file); final static List<String> lines(File file); final static List<String> lines(File file, String encoding); final static List<String> lines(File file, int lines); final static List<String> lines(File file, int lines, String encoding); final static boolean appendLine(File file, String str); final static boolean appendLine(File file, String str, String encoding); final static boolean write(File file, String str); final static boolean writeAppend(File file, String str); final static boolean write(File file, String str, String encoding); final static boolean writeAppend(File file, String str, String encoding); final static boolean cleanFile(File file); final static String mimeType(String file); final static String fileType(File file); final static Date modifyTime(File file); final static boolean copy(String resourcePath, String targetPath); final static boolean copy(File file, String targetFile); final static boolean createPaths(String paths); final static boolean createFiles(String filePath); final static boolean deleteFile(File file); final static boolean deleteDir(File file); final static boolean deleteBigFile(File file); final static void copyDir(String filePath, String targetPath); final static void copyDir(File filePath, String targetPath); final static List<File> listFile(String path); final static List<File> listFile(String path, boolean child); final static List<File> listFile(File path); final static List<File> listFile(File path, boolean child); final static List<File> listFileAll(File path); final static List<File> listFileFilter(File path, FilenameFilter filter); final static List<File> listFileFilter(File dirPath, final String postfixs); final static List<File> searchFile(File dirPath, String fileName); final static List<File> searchFileReg(File dirPath, String reg); final static String suffix(File file); }
FileUtil { public final static List<File> listFile(String path) { File file = new File(path); return listFile(file); }  static String fileMD5(File file); final static int countLines(File file); final static List<String> lines(File file); final static List<String> lines(File file, String encoding); final static List<String> lines(File file, int lines); final static List<String> lines(File file, int lines, String encoding); final static boolean appendLine(File file, String str); final static boolean appendLine(File file, String str, String encoding); final static boolean write(File file, String str); final static boolean writeAppend(File file, String str); final static boolean write(File file, String str, String encoding); final static boolean writeAppend(File file, String str, String encoding); final static boolean cleanFile(File file); final static String mimeType(String file); final static String fileType(File file); final static Date modifyTime(File file); final static boolean copy(String resourcePath, String targetPath); final static boolean copy(File file, String targetFile); final static boolean createPaths(String paths); final static boolean createFiles(String filePath); final static boolean deleteFile(File file); final static boolean deleteDir(File file); final static boolean deleteBigFile(File file); final static void copyDir(String filePath, String targetPath); final static void copyDir(File filePath, String targetPath); final static List<File> listFile(String path); final static List<File> listFile(String path, boolean child); final static List<File> listFile(File path); final static List<File> listFile(File path, boolean child); final static List<File> listFileAll(File path); final static List<File> listFileFilter(File path, FilenameFilter filter); final static List<File> listFileFilter(File dirPath, final String postfixs); final static List<File> searchFile(File dirPath, String fileName); final static List<File> searchFileReg(File dirPath, String reg); final static String suffix(File file); static MessageDigest MD5; }