private void streamDirectoryAndForceInform ( final EventDispatcher pDispatcher ) { try ( final DirectoryStream < Path > stream = newDirectoryStream ( getPath ( ) , Files :: isRegularFile ) ) { stream . forEach ( p -> createKeys ( p ) . forEach ( k -> pDispatcher . modified ( k , p , emptyList ( ) ) ) ) ; } catch ( final IOException e ) { LOG . warn ( "Exception occurred while trying to inform single listeners!" , e ) ; } }
Iterates over all files contained by this directory and informs for each entry the currently focused listener . Only direct children will be considered sub - directories and non - regular files will be ignored .