How to determine whether a file is still being transferred via ftp

后端 未结 5 1565
情书的邮戳
情书的邮戳 2020-12-06 15:59

I have a directory with files that need processing in a batch with PHP. The files are copied on the server via FTP. Some of the files are very big and take a long time to co

5条回答
  •  余生分开走
    2020-12-06 16:59

    Our server admin suggested ftpwho, which outputs which files are currently transferred.

    http://www.castaglia.org/proftpd/doc/ftpwho.html

    So the solution is to parse the output of ftpwho to see if a file in the directory is being transferred.

提交回复
热议问题