[p4] p4.add contents inside a folder

ghost654 <[email protected]> Wed, 31 Jan 2018 13:00:01 -0800
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'ghost654'.

Hi,

I am making a script that will look at a directory and any files inside that
directory or sub directories that are not on the depot will be marked for add.

Example code -
p4 = P4() p4.connect() path = '//depot/env/test/...'
p4.run('add', path)   
If i try this (using the wildcard "..." to look under that folder) it
will not open it for add.  If I put the path to this
"//depot/env/test/testing.jpg" then it will open that jpg for add.

I also tried this -
p4 = P4() p4.connect() path = '//depot/env/test/...'
p4.run('reconcile', '-a', path)   
But that also did not work unless i specified one file.

How can I get this to work!

Thanks
Craig



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5613-p4add-contents-inside-a-folder
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user