in reply to Copying files from one directory to another with different subdir
What code do you already have and how does it fail to do what you want?
Most likely, your code will be using File::Copy or File::Copy::Recursive.
Also, have you considered simply using:
system(qq{cp -rp '$source_dir' '$target_dir'}) == 0 or die "$! / $?";
... or on Windows
system(qq{xcopy /v /q /i /e /s "$source_dir" "$target_dir"}) == 0 or die "$! / $?";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Copying files from one directory to another with different subdir
by PiyaPerl (Acolyte) on Sep 19, 2016 at 12:48 UTC | |
by GotToBTru (Prior) on Sep 19, 2016 at 15:49 UTC | |
by Corion (Patriarch) on Sep 19, 2016 at 12:50 UTC | |
by PiyaPerl (Acolyte) on Sep 19, 2016 at 12:59 UTC | |
by Corion (Patriarch) on Sep 19, 2016 at 14:15 UTC |