copy error
- From: jtbutlerhvb@xxxxxxxxxxx
- Date: 9 Jan 2006 09:10:47 -0800
When I try to copy a file I get the message 'No such file or
directory'. I know the file is there and I know the path is correct
because in fact the file does copy. However some of my files are not
copying correctly and I am trying to figure out why so I am logging
everything.
#here is my code
for () {
....
$BAK->logMsg( "Copying $today\\$move_cube_name[4] to
$yesterday\\$move_cube_name[4]" .
copy("$today\\$move_cube_name[4]","$yesterday\\$move_cube_name[4]") .
$!) ;
#reset $! each time through loop
$! = '';
....
}
The above code is logged and it produces this output but the file is
copied. It also returns a '1' which I dont not understand since it
copied. Shouldnt it be '0'?
Copying D:\cognos_cubes\mmt\Today\Funding View.mdc to
D:\cognos_cubes\mmt\Yesterday\Funding View.mdc1No such file or
directory
.
- Follow-Ups:
- Re: copy error
- From: xhoster
- Re: copy error
- From: Paul Lalli
- Re: copy error
- From: it_says_BALLS_on_your forehead
- Re: copy error
- Prev by Date: Re: Correct data structure / sort method to use
- Next by Date: Re: copy error
- Previous by thread: FAQ 4.23 How do I find matching/nesting anything?
- Next by thread: Re: copy error
- Index(es):
Relevant Pages
|