LINUX: how to detect that ftp file upload is finished

前端 未结 6 710
半阙折子戏
半阙折子戏 2020-12-14 08:54

In my project I have a file uploading feature. Files are uploaded via FTP. I need to configure a listener that will check for new files and invoke a script only when file up

6条回答
  •  时光说笑
    2020-12-14 09:23

    I have used the HiddenStores feature of Proftpd. It keeps in-transit files hidden by prefixing them with a .in.filename.ext until they have finished uploading. Your process can then safely list the directories for completed files.

    http://www.proftpd.org/docs/directives/linked/config_ref_HiddenStores.html

提交回复
热议问题