Skip Menu |

This queue is for tickets about the File-Copy-Recursive CPAN distribution.

Report information
The Basics
Id: 60870
Status: rejected
Priority: 0/
Queue: File-Copy-Recursive

People
Owner: Nobody in particular
Requestors: bitcard [...] netkno.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.36
Fixed in: (no value)



Subject: dircopy fails if symlink exists
File-Copy-Recursive-0.38 Perl v5.8.8 If you are using dircopy() and $File::Copy::Recursive::CopyLink = 1 and a symbolic link already exists in the target directory, then dircopy() will return when it gets to the symbolic link and not copy anything else. This happens at the line: symlink readlink($org), $new or return; A quick fix might be to next instead of return. Ideally, it would be good to have options to define the behaviour. E.g., remove the existing link if it is different to the one being copied.
From: bitcard [...] netkno.com
This might be the same problem that was trying to be explained in bug #36178
dircopy() should fail if something it is copying exists, the upcoming modern interface will make this moot