private List<Path> getAllFiles() { logger.debug("Loading file paths from " + basepath); Set<FileVisitOption> options = new HashSet<>(); options.add(FileVisitOption.FOLLOW_LINKS); FileList fileList = new FileList(namePattern); try { Files.walkFileTree(Paths.get(basepath), options, 10, fileList); } catch (IOException e) { throw new RuntimeException(e); } logger.debug("File reader: " + fileList.toString() + " in path: " + Paths.get(basepath).getFileName()); fileList.paths.sort(Path::compareTo); return fileList.paths; }
private List<Path> getAllFiles() { logger.debug("Loading file paths from " + basepath); Set<FileVisitOption> options = new HashSet<>(); options.add(FileVisitOption.FOLLOW_LINKS); FileList fileList = new FileList(namePattern); try { Files.walkFileTree(Paths.get(basepath), options, 10, fileList); } catch (IOException e) { throw new RuntimeException(e); } logger.debug("File reader: " + fileList.toString() + " in path: " + Paths.get(basepath).getFileName()); fileList.paths.sort(Path::compareTo); return fileList.paths; }
private List<Path> getAllFiles() { logger.debug("Loading file paths from " + basepath); Set<FileVisitOption> options = new HashSet<>(); options.add(FileVisitOption.FOLLOW_LINKS); FileList fileList = new FileList(namePattern); try { Files.walkFileTree(Paths.get(basepath), options, 10, fileList); } catch (IOException e) { throw new RuntimeException(e); } logger.debug("File reader: " + fileList.toString() + " in path: " + Paths.get(basepath).getFileName()); fileList.paths.sort(Path::compareTo); return fileList.paths; }