hey guys i want to write a small c# ftp client class library which basically needs to transfer files to a ftp location
what i want is a 100% foolproof code where i can get some sort of acknowledgement that the ftp file transfer has been either 100% successful or failed
no resume support is required
good to have (but secondary):
some sort of distributed transaction where only if the file transfer is successful for a file, i update my db for that particular file with 1 (true)... if its failed then db to be updated with 0 (false)
but suppose the ftp file transfer was successful, but for whatever reasons the db could not be updated, then the file over ftp should be deleted - i can easily do this using dirty c# code (where i manually try to delete the file if db update failed)
but what i am exactly looking for is file system based transaction over ftp... so both the file transfer as well as db update is not committed until both are successful (hence no need for manual delete)
any clues?