in reply to cp -p in perl?
Is there a perl module or a perl builtin that will perform a file copy but preserve the permissions of the copied file?Unless something has changed recently, the most cited module for copying files, File::Copy doesn't do it. In fact, it doesn't even mimic the default cp behaviour, dropping permissions when you least expect it.
My advice for copying files is to use system cp => @files, $destination. cp is far more useful than File::Copy::copy that a potential loss in portability (but bare in mind that cp has been ported outside of Unix systems) is well worth the gain.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: cp -p in perl?
by BuddhaNature (Beadle) on Apr 20, 2004 at 23:37 UTC | |
by Abigail-II (Bishop) on Apr 21, 2004 at 08:01 UTC |