LINUX: how to detect that ftp file upload is finished

前端 未结 6 805
半阙折子戏
半阙折子戏 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:18

    Have a look at inotify

    It doesn't automatically watch sub directories though, so if you need to monitor many ftp accounts (or the FTP client wants to create a sub dir and upload there) you'll need to handle this yourself.

提交回复
热议问题