but "foo" is a symlink to directory "bar" on the receiver. Without--keep-dirlinks, the receiver deletes symlink "foo", recreates it as a directory, and receives the file into the new directory. With--keep-dirlinks, the receiver keeps the symlink and "file" ends up in "bar". ...