Subject: | Improper failure when creating symlinks with an existing destination entity |
During a copy operation attempts to create a symbolic link with the name
of an already existing entity in the destination directory will fail. I
think that this is incorrect behavior as other copy operations
successfully handle the same situation.
The root cause of this in File::Copy::Recursive is the use of the Perl
symlink function, which will fail if an attempt is made to use it on an
existing entity. To be symmetric with the other copy operations, the
existing entity must first be deleted, and then the symlink should be
created.
Thanks,
Diab