Java Utililty Methods Path File List nio

List of utility methods to do Path File List nio

Description

The list of methods to do Path File List nio are organized into topic(s).

Method

StreamuncheckedList(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);
voidvalidateAndAdd(Path path, String expression, LinkedList files)
validate And Add
if (expression == null || Pattern.matches(expression, path.toString())) {
    files.add(new File(path.toString()));