This article, Adding a Directory Tree, shows how to add a directory tree to your perforce repository.
- On UNIX, run:find . -type f -print | p4 -x - add
findcommand will find files, but will not find symlinks. Nevertheless, you can add symlinks to Perforce using a similar method. Be aware, however, that symlinks are read-only entites, and that editing a symlink is not the same as editing the file it references.
To discover the symlinks that exist in your client workspace and assess whether or not you want to version them, run the following command from your client workspace root:find . -type l -print (That's an "el" as in "l" for link)
To add symlinks, run:find . -type l -print | p4 -x - add -t symlink
- On Windows, using the MS-DOS command shell, run:dir /b /s /a-d | p4 -x - add