public void fileCreated()

in src/com/intellij/vssSupport/VFSListener.java [47:80]


  public void fileCreated(@NotNull VirtualFileEvent event )
  {
    VirtualFile file = event.getFile();

    //  In the case of multi-vcs project configurations, we need to skip all
    //  notifications on non-owned files
    if( !VcsUtil.isFileForVcs( file, project, host ))  return;

    //  In the case when the project content is synchronized over the
    //  occasionally removed files.
    //  NB: These structures must be updated even in the case of refresh events
    //      (lines below).
    String path = file.getPath();
    host.removedFiles.remove( path );
    host.removedFolders.remove( path );
    host.deletedFiles.remove( path );
    host.deletedFolders.remove( path );

    if( event.isFromRefresh() )  return;

    if( isFileProcessable( file ) )
    {
      //  Add file into the list for further confirmation only if the folder
      //  is not marked as UNKNOWN. In this case the file under that folder
      //  will be marked as unknown automatically. 
      VirtualFile parent = file.getParent();
      if( parent != null )
      {
        FileStatus status = ChangeListManager.getInstance( project ).getStatus( parent );
        if( status != FileStatus.UNKNOWN )
          filesAdded.add( file );
      }
    }
  }