Topic "Unable to connect to remote directory IBM mainframe"

Author Message
abarman_

Guest


Hi,
I am using Winscp.net from nuget.
I am able to open the session with the proper credentials.
It is failing at
var v = session.ListDirectory(@"'EMA.S44.'"); //The string is <single-quote>EMA.S44.<single-quote>

The FTP site is at IBM mainframe.

I was able to connect using WinSCP gui.

I had to add remote directory at the advanced option as 'EMA.S44.' (Note: exactly with the . and single-quote).

Enabled the log while connecting from gui which worked as following. I am just showing the part.

== Log ===
. 2016-08-30 11:14:48.033 Changing directory to "'EMA.S44.'".
> 2016-08-30 11:14:48.033 CWD 'EMA.S44.'
< 2016-08-30 11:14:48.040 250 "EMA.S44." is the working directory name prefix.
. 2016-08-30 11:14:48.040 Getting current directory name.
> 2016-08-30 11:14:48.040 PWD
< 2016-08-30 11:14:48.044 257 "'EMA.S44.'" is working directory.
. 2016-08-30 11:14:48.236 Retrieving directory listing...
== Log ==

Now, while connecting using C# code, digging to exception I found the following.


"winscp> ls -- \"'EMA.S44.'/\""
"Error listing directory ''EMA.S44.''."
"Could not retrieve directory listing\r"
"CWD cmd failed : EDC5129I NO SUCH FILE OR DIRECTORY."


Note:Here is some details about name directory prefix....

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.cs3cod0/ftp250-09.htm


I also used genrate url code, and it is as follows. I did hide server details.

winscp-ftpes://*****@ftp.***.***.***/%27EMA.S44.%27/

Please let me know if you see some thing obvious.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Duplicate post on Stack Overflow:
http://stackoverflow.com/q/39236024/850848
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1453
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License