Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

CCCRonM

Re: Using PutFiles() when remote folder is the root folder

martin wrote:

The slash is correct (assuming the account it chrooted).

Can you upload a file in WinSCP GUI? If you can, can you post a complete session log file showing that?


Thanks for your reply. I was able to retest the code late in the day yesterday when a new file came in and I got it to work. the "/" was correct, as you said, in the first place. I'm still not sure yet why it failed before but it seems I'm good to go now. Thanks again.
martin

Re: Using PutFiles() when remote folder is the root folder

The slash is correct (assuming the account it chrooted).

Can you upload a file in WinSCP GUI? If you can, can you post a complete session log file showing that?
CCC_RonM

Using PutFiles() when remote folder is the root folder

I'm using C# Session class to PutFiles() to a remote FTP site. I seem to be having trouble with the remotePath param. The folder on the remote site is the root folder so there is no sub path to enter here. I tried "/" and the transfer fails. I also tried just "" empty string. I had no more files to test with so I haven't tried just "/root" or something similar. What am I missing here? Thanks!