- Feb
- 240
- 3
I'm using TCC's copy command to download files via FTP. Occasionally there is an FTP error that aborts the transfer in the middle. In these cases, I find that the partially-copied file remains, giving the appearance that the file was copied correctly, even though it is only a partial file. Instead, I'd like to have COPY automatically delete any partially-copied file upon encountering an FTP error that aborts the transmission. Is there any way to do so?
It occurs to me that I can probably check the %_copy_errors variable and then delete the file if an error occurred; however, I'd much rather be able to just issue the copy command directly with an appropriate flag, if possible.
It occurs to me that I can probably check the %_copy_errors variable and then delete the file if an error occurred; however, I'd much rather be able to just issue the copy command directly with an appropriate flag, if possible.