login about faq

I need to put a file in memory to a specific folder, as opposed to the home folder of the server I am connecting to.

This is being coded in c sharp. using secureblackbox dlls.

should I perform an OpenDirectory first to change the directory, and then do an OpenStream/Putsteream(filename)

(does the OpenDirectory change the directory that the OpenSteam/PutStream uses?)

or should I just add the destination folder to the OpenStream/PutStream(path/filename)

I would prefer the first option, as my application caters for both FTP and SFTP, and I don't want to make changes in the main part of the application as this would affect the performance.

Thanks for any advice.

asked Dec 02 '10 at 00:06

Ashley%201's gravatar image

Ashley 1
1111

Be the first one to answer this question!
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:

×63
×2
×1
×1

Asked: Dec 02 '10 at 00:06

Seen: 2,295 times

Last updated: Dec 02 '10 at 00:06

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.