List of utility methods to do Path File List nio
Stream | uncheckedList(final Path path) Fetch a stream of files in the provided directory path. try { return Files.list(path); } catch (final IOException ex) { throw new UncheckedIOException("Error fetching file list", ex); |
void | validateAndAdd(Path path, String expression, LinkedList validate And Add if (expression == null || Pattern.matches(expression, path.toString())) { files.add(new File(path.toString())); |