sub cp;
sub mv;
-$VERSION = '2.23';
+$VERSION = '2.24';
require Exporter;
@ISA = qw(Exporter);
return 1;
}
+ if (!$from_a_handle && !$to_a_handle && -d $to && ! -d $from) {
+ $to = _catname($from, $to);
+ }
+
if ((($Config{d_symlink} && $Config{d_readlink}) || $Config{d_link}) &&
!($^O eq 'MSWin32' || $^O eq 'os2')) {
my @fs = stat($from);
}
}
- if (!$from_a_handle && !$to_a_handle && -d $to && ! -d $from) {
- $to = _catname($from, $to);
- }
-
if (defined &syscopy && !$Syscopy_is_copy
&& !$to_a_handle
&& !($from_a_handle && $^O eq 'os2' ) # OS/2 cannot handle handles
use File::Spec;
SKIP: {
- local $TODO = "copy foo/file to foo/ overwrites, RT #111126";
# RT #111126: File::Copy copy() zeros file when copying a file
# into the same directory it is stored in