Copying directory structure and its content.

2003-02-19 Thread Pankaj Kapare
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

Re: Copying directory structure and its content.

2003-02-19 Thread Victor Tsang
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

Re: Copying directory structure and its content

2003-02-19 Thread Sudarshan Raghavan
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

Re: Copying directory structure and its content.

2003-02-20 Thread Jenda Krynicky
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,

RE: Copying directory structure and its content.

2003-02-21 Thread Dan Muey
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