Does "226 Transfer complete" guarantee the consistency between local and remote files when using ftp?

5,076

No, it does not. 226 can also occur on various conditions where this would not be true (ABORT for one). See RFC 959.

Share:
5,076

Related videos on Youtube

Lewis Norton
Author by

Lewis Norton

University of Leeds computer science graduate and Data Analyst at Retail Express Ltd.

Updated on September 18, 2022

Comments

  • Lewis Norton
    Lewis Norton over 1 year

    I have some automated scripts which perform FTP uploads among other things. I'm wondering what level of error checking I should conduct once these uploads have finished executing.

    Could anything go wrong uploading a file when it reports "226 Transfer complete" which would warrant extra tests, besides checking for this string in the log, to check if a file was successfully uploaded?

  • psusi
    psusi about 12 years
    Presumably the OP knows he isn't issuing an ABORT command, which to my knowledge, no servers support and no clients issue anyhow.
  • psusi
    psusi about 12 years
    It is the only command for which 226 does not mean the data has been successfully transferred.