标签:
public static void printFile(String a)throws IOException { try { File file =new File(a); for (File aa : file.listFiles()) { if (aa.isDirectory()){ printFile(aa.toString()); // System.out.println(aa); } else if(aa.list()==null) { System.out.println(aa); } } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
标签:
原文地址:http://www.cnblogs.com/zhwtcle/p/4322959.html