Perforce adding a folder to depot

NewDTinStackoverflow picture NewDTinStackoverflow · Aug 15, 2012 · Viewed 54.8k times · Source

I am new to Perforce. Could you add a new folder under the branch in the depot? I also tried to add one in my workplace but how could I get it to the depot? Do I have to do a merge/integrate or something?

Thanks.

Answer

Gene Bo picture Gene Bo · Dec 4, 2013

p4 add doesn't support recursive add .

Here's a unix shell work-around to run from within the root folder you want to add:

find . -type f -print | p4 -x - add