Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Tue Jan 09, 2007 3:22 pm Post subject: Ftp exit codes |
|
|
user question:
I have a question regarding the FTP Get function. If the ftp site has a file of the correct name, but it has a length of zero, the file is transferred, but the task exits with an error (exit code=1). If the file name does not exist at all, it fails with an exit code of 0.
Does an exit code of 1 always indicate that the file transferred, but the length was zero? For our application, a zero length file is acceptable, and I'm trying to create a script that will ingore an error if it does not matter (like this). If exit code 1 could indicate any other error, then how can I differentiate between the possible meanings?
It would be great if the help file listed the meanings of common exit codes. |
|