Couple of ways :
1) quick and dirty
- if it's unix and you don't mind it not being portable to windows
- do the -d test on the vars so you know they are directories and not evil
commands to delete stuff or something
if((-d $orig_dir)&&(-d $dest_dir)) {
p
From: "Pankaj Kapare" <[EMAIL PROTECTED]>
> I want to copy whole directory structure and its containts(may be file
> and folders under source directory) to destination directory .i dont
> know how to do this .Can anybody help me. Thanks in advance ! Pankaj
If you don't mind a Win32-only solution,
Pankaj Kapare wrote:
> Hi,
>
> I want to copy whole directory structure and its containts(may be file and folders
>under source directory) to destination directory .i dont know how to do this .Can
>anybody help me.
> Thanks in advance !
> Pankaj
Any reason for doing this in perl. To answer you
In shell, you can use cp -r or rsync
I have never done such thing in perl, but this library might be what you
need.
http://theoryx5.uwinnipeg.ca/CPAN/data/File-DirSync/README.html
Tor.
Pankaj Kapare wrote:
>
> Hi,
>
> I want to copy whole directory structure and its containts(may be file and
Hi,
I want to copy whole directory structure and its containts(may be file and folders
under source directory) to destination directory .i dont know how to do this .Can
anybody help me.
Thanks in advance !
Pankaj