ripper234
ripper234

Reputation: 230156

Why doesn't p4 sync -f folder revive a deleted folder?

(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

Answers (1)

user100766
user100766

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

Related Questions