Overwrite versus Append on GetFile Method (wodSFTP / wodSFTP.NET / wodSFTPdll)
Previously using a free FTP class module which the getfile would overwrite the local file. Suprised to see this GetFile appends to current local file of same name. So, am I to assume by default the GetFile method appends instead of overwrites. Didnt see anything in the help about defaults. Is there a property I can set for GetFile that forces the overwrite. As of now I will just remove local file first.
Re: Overwrite versus Append on GetFile Method
Hi,
By default, the file will be overwritten. Unless offcourse the Resume Property is set to True. Is that the case?
If Resume Property is set to true, the file which already exists on the server, will continue download from the position where it stopped the last time you called GetFile.
Regards,
Damba
Re: Overwrite versus Append on GetFile Method
Damba,
Yes that's the case. Being newbie I used help 'getting started' examples to setup xfer. Looks like I can get rid of the resume property in this case.
Thanks,
cs-ljt