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.
Related videos on Youtube
Author by
Lewis Norton
University of Leeds computer science graduate and Data Analyst at Retail Express Ltd.
Updated on September 18, 2022Comments
-
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 about 12 yearsPresumably the OP knows he isn't issuing an ABORT command, which to my knowledge, no servers support and no clients issue anyhow.
-
psusi about 12 yearsIt is the only command for which 226 does not mean the data has been successfully transferred.