Reputation: 230156
(foo is source controled)
$ 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
Upvotes: 5
Views: 2598
Reputation:
Perforce doesn't know about directories, that's why it cannot 'revive' them. The second sync succeeds, because you are not syncing the directory, but the files in this directory.
The directory foo
wasn't added with p4 initially. It was probably added by p4 add foo/bar.txt
Upvotes: 6