private void generateCreateEvents(List<IgfsPath> createdPaths,boolean file){
  if (evts.isRecordable(EventType.EVT_IGFS_DIR_CREATED)) {
    for (int i=0; i < createdPaths.size() - 1; i++)     IgfsUtils.sendEvents(igfsCtx.kernalContext(),createdPaths.get(i),EventType.EVT_IGFS_DIR_CREATED);
  }
  IgfsPath leafPath=createdPaths.get(createdPaths.size() - 1);
  if (file) {
    IgfsUtils.sendEvents(igfsCtx.kernalContext(),leafPath,EventType.EVT_IGFS_FILE_CREATED);
    IgfsUtils.sendEvents(igfsCtx.kernalContext(),leafPath,EventType.EVT_IGFS_FILE_OPENED_WRITE);
  }
 else   IgfsUtils.sendEvents(igfsCtx.kernalContext(),leafPath,EventType.EVT_IGFS_DIR_CREATED);
}

private void generateCreateEvents ( List < IgfsPath > createdPaths , boolean file ) { if ( evts . isRecordable ( EventType . EVT_IGFS_DIR_CREATED ) ) { for ( int i = 0 ; i < createdPaths . size ( ) - 1 ; i ++ ) IgfsUtils . sendEvents ( igfsCtx . kernalContext ( ) , createdPaths . get ( i ) , EventType . EVT_IGFS_DIR_CREATED ) ; } IgfsPath leafPath = createdPaths . get ( createdPaths . size ( ) - 1 ) ; if ( file ) { IgfsUtils . sendEvents ( igfsCtx . kernalContext ( ) , leafPath , EventType . EVT_IGFS_FILE_CREATED ) ; IgfsUtils . sendEvents ( igfsCtx . kernalContext ( ) , leafPath , EventType . EVT_IGFS_FILE_OPENED_WRITE ) ; } else IgfsUtils . sendEvents ( igfsCtx . kernalContext ( ) , leafPath , EventType . EVT_IGFS_DIR_CREATED ) ; }
generate events for created file or directory .
