Back to product page

Resume function


Determines if wodSFTP will resume file transfer.

Type

A Long value. If successful, 0 is returned, otherwise error as specified here

Syntax

  • C
long Sftp_GetResume(void *Sftp, int *pVal);
long Sftp_SetResume(void *Sftp, int newVal);
The Resume(void *Sftp,int *pVal, newVal) syntax has these parts:
void *SftpHandle of the created Sftp instance.
int *pVal, newValInteger value that when set to True, will cause wodSFTP to attempt to resume file transfer.

Remarks

The Resume property will force wodSFTP to resume a file transfer, if possible. File transfer will not truncate the destination file and transmission of data will continue from the point where the connection was previously lost.

If you are uploading a file, wodSFTP will start from the position that is equal to the length of the existing file on the remote server.

If you are downloading a file, wodSFTP will start from the position that is equal to the length of the existing local file.

Platforms

Windows