Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want to copy a file over to another directory and if that file exists, I would like to overwrite the file. A copy command:
copy ( source, destination );
But, the copy command does not overwrite the file if it already exists. Is there a way I can force the overwrite?
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: overwrite a file
by RazorbladeBidet (Friar) on Apr 01, 2005 at 21:38 UTC | |
|
Re: overwrite a file
by bcole23 (Scribe) on Apr 01, 2005 at 21:43 UTC | |
by Anonymous Monk on Apr 01, 2005 at 23:04 UTC | |
|
Re: overwrite a file
by punch_card_don (Curate) on Apr 01, 2005 at 22:59 UTC | |
|
Re: overwrite a file
by tlm (Prior) on Apr 01, 2005 at 21:41 UTC | |
by bcole23 (Scribe) on Apr 01, 2005 at 21:44 UTC |