in reply to File::Copy dying on Win2k when target file already there
You might print $! and $^E also to find out why the copy failed.
One time when I had an "already there" problem, it's because the file was read-only. So you can't just delete it either. I unconditionally reset the attribute on the target, ignoring any error if it didn't exist, then did the copy.
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File::Copy dying on Win2k when target file already there
by scain (Curate) on Jan 16, 2003 at 21:24 UTC | |
by John M. Dlugosz (Monsignor) on Jan 17, 2003 at 02:30 UTC | |
by scain (Curate) on Jan 17, 2003 at 15:58 UTC | |
by John M. Dlugosz (Monsignor) on Jan 17, 2003 at 16:48 UTC | |
by Aristotle (Chancellor) on Jan 18, 2003 at 15:33 UTC |