I
ioneabu
This will copy whole directory structure with files (Thanks Sherm! -
from old post).
#!/usr/bin/perl
use strict;
use warnings;
use File::NCopy;
my $copier = new File::NCopy(recursive=>1, force_write=>1);
$copier->copy('dir1', 'dir2'); #important: dir2 must exist first
QUESTION: What if I want to copy the directory structure but not the
files?
I am putting together a photo album and will be using ImageMagick to
convert from huge size to 640x480 but I want to copy my original photo
directory structure first and then use ImageMagick to convert the
pictures and copy them to the new directories.
Thanks!
wana
from old post).
#!/usr/bin/perl
use strict;
use warnings;
use File::NCopy;
my $copier = new File::NCopy(recursive=>1, force_write=>1);
$copier->copy('dir1', 'dir2'); #important: dir2 must exist first
QUESTION: What if I want to copy the directory structure but not the
files?
I am putting together a photo album and will be using ImageMagick to
convert from huge size to 640x480 but I want to copy my original photo
directory structure first and then use ImageMagick to convert the
pictures and copy them to the new directories.
Thanks!
wana