On Jun 1, 2007, at 4:29 PM, Beginner wrote:

Hi,

I am trying to copy some file from a removable HDD to a network
drive. I want replicate the directory structure and omit un-needed
files.

The directory paths a 4-5 levels deep and I am trying to work out an
efficient way to recreate the directory path.

What I've been doing is using File::Find to collect the file and then
in the coderef calling the following subroutine to check the path but
i didn't go too far as my method seems....well not well formed.

The path to a source file looks like:

e:/Dir1/Day 1/AM/01/myfile.jpg

I think you want File::Path's mkpath. File::Path is a standard module.

-- fxn




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to