为什么我每次都是文件不存在 public static void main(String[] args) throws IOException { FileUtils.listDirectory(new File("h;/c" )); }
反斜杠/是可以运行的。但是你怎么把冒号写成分号了!
路径不对,Windows下应该写成“h:\\c”