Hi,

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,

asked 06 Apr '10, 09:23

Martin%20House's gravatar image

Martin House
896
accept rate: 100%

edited 10 Aug '10, 13:36

Rebex%20KB's gravatar image

Rebex KB ♦♦
258519


Hi,

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.

link

answered 06 Apr '10, 11:39

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×2

Asked: 06 Apr '10, 09:23

Seen: 402 times

Last updated: 10 Aug '10, 13:36