10-18-2006
255,
2
Join Date: Feb 2006
Last Activity: 2 February 2012, 9:30 AM EST
Location: Indianapolis, IN
Posts: 255
Thanks Given: 0
Thanked 2 Times in 2 Posts
If it's a text (ASCII) file, there is no way to tell if the file is completely transferred unless the customer provides a separate checksum file of some sort (i.e. a file specifying the file's size, contents, etc.) or if you can determine completeness based on the file contents (e.g., the last line of the file contains "EOF" or something). You can test for the file's existence, but a partially-transferred file would test "true" for existing, which doesn't help.