81,092
社区成员
发帖
与我相关
我的任务
分享
public void addToCaseList(String filePath, String fileName, int groupId) {
File file = new File(filePath, fileName);
File[] lf = file.listFiles();
// file.exists(), file.isDirectory() ...
// blah, blah, blah...
}
File f=new File("D:\\fileCheck");
File[] fs =f.listFiles();
for (File file : fs) {
System.out.println(file.getName());
}