Why does the p4 sync -f folder not recover the deleted folder?

(foo is controlled by the source)

$ rm -rf foo
$ p4 sync -f foo
$ ls foo
ls: cannot access foo: No such file or directory
$ p4 sync -f foo/...
$ ls foo
bar.txt
+5
source share
1 answer

Perforce does not know about directories , so it cannot "animate" them. The second synchronization was completed successfully because you are not synchronizing the directory, but the files in this directory.

At first, the directory was foonot added with p4. It was probably addedp4 add foo/bar.txt

+6
source

All Articles