FTP: copy, check integrity and delete

后端 未结 2 1296
旧时难觅i
旧时难觅i 2020-12-04 00:55

I am looking for a way to connect to a remote server with ftp or lftp and make sure the following steps:

  1. Copy files from FTP serve

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 01:12

    That's a long shot, but if the server supports php, you can exploit that.

    Save the following as a php file (say, check.php), in the same folder as your name_of_file.txt file:

    
    

    Then, visit the page check.php, and you should get the md5 hash of your file.

    Related questions:

    • Calculate file checksum in FTP server using Apache FtpClient
    • How to perform checksums during a SFTP file transfer for data integrity?
    • https://serverfault.com/q/98597/401691

提交回复
热议问题