nisha has asked for the wisdom of the Perl Monks concerning the following question:
i have a script which walks recursivley through c:\temp This directory has many sub-directories within sub-directories and files and extracts a file. I have to extract the file and place it in c:\docs and at the same time maintain the same directory structure. That is if the file is present in c:\temp\in-temp\file1.txt then this file file1.txt has to be extracted to c:\docs\in-temp\file1.txt. I do not know how to go about extracting only in-temp and creating it in c:\docs\ and then putting the file. I would be extremely grateful if you could please help me to do this.$dir1 = "c:\temp"; $dir2 = "c:\docs";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory operations
by xdg (Monsignor) on Nov 08, 2005 at 15:07 UTC | |
|
Re: Directory operations
by jbrugger (Parson) on Nov 08, 2005 at 07:17 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |