+1 vote
by (570 points)


Can you tell me what the default reaction of the Ftp.GetUploadStream() method is when the specified already exists on the host ? i.e. Will it, Overwrite, Append or raise an exception ?

Many thanks,

Applies to: Rebex FTP/SSL

1 Answer

0 votes
by (13.0k points)
Best answer


the Ftp.GetUploadStream behaviour is the same as Ftp.PutFile. If the remote file exists it's overwritten. If the file cannot be overwritten (e.g. if you don't have permissions to write to file or the file is locked out) the exception it thrown.