private void processPath()

in src/com/intellij/vssSupport/VssUpdateEnvironment.java [66:95]


  private void processPath( final FilePath root, List<VcsException> errors, UpdatedFiles updatedFiles )
  {
    if( root.isDirectory() )
    {
      try
      {
        final VirtualFile rootFile = root.getVirtualFile();
        SynchronizeCommand cmd = new SynchronizeCommand( project, rootFile, errors );
        cmd.execute();

        fillGroup( updatedFiles, FileGroup.CREATED_ID, cmd.getFilesAdded() );
        fillGroup( updatedFiles, FileGroup.UPDATED_ID, cmd.getFilesChanged() );
        fillGroup( updatedFiles, FileGroup.SKIPPED_ID, cmd.getFilesSkipped() );

        //  Make files in the folder refresh immediately after the "Get" operation
        //  is finished. Otherwise synch can be made synchronously far later.
        rootFile.refresh( true, rootFile.isDirectory() );
      }
      catch( Throwable e )
      {
        VcsException exc = new VcsException( "Can not process content root " + root.getPath() );
        AbstractVcsHelper.getInstance(project).showError( exc, TAB_NAME );
      }
    }
    else
    {
      GetFileCommand cmd = new GetFileCommand( project, root.getPath(), errors );
      cmd.execute();
    }
  }