Search code examples
perforcep4vperforce-client-specperforce-integrate

perforce sync no such files


I am trying to setup perforce. I installed p4v and setup workspace. Then I ran

C:\"Program Files"\Perforce\p4 -p perforce-test:1500 -u test-user -c test-user_test sync //test-folder/test/

But I get error //test-folder/test/ no such files(s)

I can see files and folder exist in p4v depo.


Solution

  • Use the path:

    //test-folder/test/...
    

    Directories aren't objects in Perforce, they're just part of the file name -- so you don't sync a directory called "//test-folder/test/", you sync all the files whose paths match the pattern "//test-folder/test/...".