Just did a quick read through on this thread, but...
From what I can make of it, you're after a solution to sync a local and remote folder, right?
Why not use the rsync utility?
Do a "man rsync" on a command line and see if it is any helps for you.
You basically run the rsyncd on the 'server' and use the rsync command on the client to sync server and client directories.
It will give you all kinds of exit codes if something failed. It will even do delta-copies if a file wasn't copied correctly the first time or if you had an error
I don't know if it's what you're after, but I just thought I'd mention it.