Subject: SFTP to specific sub folder
Date: 2011-03-23 08:36:38
From: Ian Gordon
Source: sftp-specific-sub-folder
----------------------------------------------------------------------

Hi, 

My solution is sending a file to a host successfully via Ultimate SFTP, but I have a problem getting it to a particular folder. The upload code is:

 client.UploadFile(filename, SFTP_FolderName + System.IO.Path.GetFileName(filename));

The idea is that I set the SFTP_FolderName to something like:

SFTP_FolderName = @"/incoming/";

and this works fine - the file appears in the incoming folder on the host. But then I set it to:

SFTP_FolderName = @"/incoming/inbox/";

then the file does not materialise, and I don't know why - I don't get an error message at all. Any ideas on this? Is this something that has to be set as allowable a the host end? Or is there a better way of doing this?

Any answers greatly appreciated.

Regards, Ian


---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index