Overwrite versus Append on GetFile Method - WeOnlyDo Discussion board

Overwrite versus Append on GetFile Method (wodSFTP / wodSFTP.NET / wodSFTPdll)

by cs-ljt, Monday, January 22, 2007, 17:08 (6327 days ago)

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

by wodDamir, Monday, January 22, 2007, 17:12 (6327 days ago) @ cs-ljt

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

by cs-ljt, Monday, January 22, 2007, 17:17 (6327 days ago) @ wodDamir

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