J
jtbutlerhvb
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
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