You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But dst -> file2 would be expected.
Similarly, this happens when copying directories that contain links.
This happens with both dcp and dsync.
The text was updated successfully, but these errors were encountered:
daltonbohning
changed the title
dsync: handle when destination link exists with different target
dcp and dsync: handle when destination link exists with different target
Oct 22, 2020
It doesn't seem there is a system call to update a link target. It seems the only way to update the target is to delete the destination before creating the symlink.
That's what cp seems to do:
Example:
If we have these links:
And run dsync like this:
Then we get:
But
dst -> file2 would be expected
.Similarly, this happens when copying directories that contain links.
This happens with both
dcp
anddsync
.The text was updated successfully, but these errors were encountered: