Adding Files

Published by Marco on in Perforce

Adding files to Perforce is easy; adding a folder with all sub-folders is less obvious. Often, you want to “check” a folder to see whether there are any local files that should be in Perforce.

The following instructions apply to the Windows client (P4WIN) only; other operating systems will have to use the command line executable, P4.

  1. Drag the desired folder from the Windows Explorer to an open changelist.
  2. Perforce displays a dialog to add the files.
  3. Select the Add only radio button. (see tips below)
  4. Click Ok to add the files.
  • The radio buttons on the bottom are important: the both add and edit will add missing files and check out all existing files in the dragged folder or subfolders. You usually don’t want this.
  • The files that appear in the list have not yet been filtered by the Workspace view, so don’t worry that Perforce will add files that it should not. Files that are excluded by the workspace will not be added, and will generate a warning in the output instead.