ERROR - java.nio.NotDirectoryException - Possible Causes of NotDirectoryException

Exception Thrown By:Cause
ClassMethod
Files public static DirectoryStream
newDirectoryStream(Path dir)
if the file could not otherwise be
opened because it is nota directory (optional specific e
Files public boolean accept(Path file) if the file could not otherwise be
opened because it is nota directory (optional specific e
Files public static Stream
list(Path dir)
if the file could not otherwise be
opened because it is nota directory (optional specific e