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
source
share