One way to solve this problem is to write your own FTP server in Perl. Net::FTPServer makes it easy. Just inherit from the provided base classes and implement your processing at the end of the close() method. I did this for Bricolage and it works very well.
-sam
Comment on Re: how to tell if a file is still being modified