FTP: Is there a way to know a file has been written

Ok thanks a lot.
Now I receive the DONE event. (I don’t know what was wrong in my last program…)
I can now rename the file in the same ftp session.

Regards.
H. Puech