String directory = "C:\\Users\\Administrator\\AppData\\Local\\Temp\\8ad088a2-0bb3-41dc-89d9-2c57ef8414b0";
List<File> files = Files.list(Paths.get(directory)).map(path -> path.toFile()).collect(Collectors.toList());

 

posted on 2019-08-14 11:05  你不知道的浪漫  阅读(1042)  评论(0编辑  收藏  举报