if you are performing the file copy in php (and your code above indicates that you are doing it from a *nix shell), i believe that the script will pause until the file activity is finished.
You could use the filesize() function and compare the from and to files. If they are different it failed.
If you wanted another way to check even if the filesize were the same you could create some kind of check value aroubd MD5 or some kind of CRC (Cyclic Reduncancy Check) value
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.