#!/usr/bin/perl
-my $version = "1.33";
+my $version = "1.37";
use warnings;
use strict;
sub copy_files {
my $targetdir = $File::Find::dir;
$targetdir =~ s/^$copy_source/$copy_target/o;
- mkpath( $targetdir ) if not -e $targetdir;
+ mkpath( $targetdir, 1 ) if not -d $targetdir;
+ return if -d $File::Find::name;
my $targetfile = $File::Find::name;
$targetfile =~ s/^$copy_source/$copy_target/o;
+ print "copy $targetfile\n";
copy($File::Find::name, $targetfile);
}