throws NotDirectoryException, IOException, SecurityException {
checkNotNull( "filter", filter );
final File file = checkNotNull( "dir", dir ).toFile();
if ( !file.isDirectory() ) {
throw new NotDirectoryException( dir.toString() );
}
final File[] content = file.listFiles();
if ( content == null ) {
throw new NotDirectoryException( dir.toString() );
}
return new DirectoryStream<Path>() {
boolean isClosed = false;