Using PutFiles() when remote folder is the root folder

Advertisement

CCC_RonM
Joined:
Posts:
1
Location:
United States

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

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?

Reply with quote

CCCRonM
Guest

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.

Reply with quote

Advertisement

You can post new topics in this forum