Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter. The behavior of this method is the same
as that of the listFiles() method, except that the pathnames in
the returned array must satisfy the filter. If the given filter
is null then all pathnames are accepted. Otherwise, a pathname
satisfies the filter if and only if the value true results when
the FilenameFilter.accept(File, String) method of the filter is
invoked on this abstract pathname and the name of a file or directory in
the directory that it denotes.
filter
| A filename filter |
null if this abstract pathname does not denote a
directory, or if an I/O error occurs.
SecurityException
| If a security manager exists and its SecurityManager.checkRead(String) method denies read access to
the directory |
java.nio.file.Files.newDirectoryStream(Path,String)
Diagram: File