Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

SvenSDC wrote:

Sorry :( I was mistaken about the NLST command. It is that LIST command that returns most info. I only need it to apply the filter on the server.

Again, that's not possible. Maybe your server supports that. But it's against FTP specification. WinSCP cannot rely on non-standard behavior.
SvenSDC

Sorry :( I was mistaken about the NLST command. It is that LIST command that returns most info. I only need it to apply the filter on the server.
SvenSDC

Hi Martin.
Thank you for your reply.
I posted this question originally - now I've created a login :-)

1) It seems that WinSCP use the LIST command, while the built-in Windows FTP client use the NLST command. Are there no plans to support the NLST command?

2) Thank you for the tip.

In our case, this issue alone will make WinSCP useless for us for widespread use.
martin

Re: Problems using the ListDirectory / ls command with z/OS mainfra FTP-site

Anonymous wrote:

1) WinSCP seems to list all dataset for the selected user/prefix and then filter against wildcard pattern on the client side. This can result in huge lists being sent over the net for no reason.

That's correct. There's no (at least no standard) way to get the server filter the files. So they have to be filtered on client side.

2) Allthough I can see (with Wireshark) that the server returns the z/OS specific information like Dsorg,Recfm, Lrecl there doesn't seem to be a way to retrieve the information?
I downloaded the source, cloned the ListDirectory method and dependencies to a new ListMainframeFiles method, but it seems that the assembly communicate with WinSCP.exe through an XML log-file and the data I need is not in the log-file either.

No, WinSCP does not support retrieving those fields. All you can possibly do, is to parse WinSCP log file.
Guest

Problems using the ListDirectory / ls command with z/OS mainfra FTP-site

I'm fairly new to WinSCP - version 5.9.4 and need it to work with z/OS ftp-site through the .NET assembly.
I've covered all my needs, except for the ls command, where I have two problems

1) WinSCP seems to list all dataset for the selected user/prefix and then filter against wildcard pattern on the client side. This can result in huge lists being sent over the net for no reason.

2) Allthough I can see (with Wireshark) that the server returns the z/OS specific information like Dsorg,Recfm, Lrecl there doesn't seem to be a way to retrieve the information?
I downloaded the source, cloned the ListDirectory method and dependencies to a new ListMainframeFiles method, but it seems that the assembly communicate with WinSCP.exe through an XML log-file and the data I need is not in the log-file either.

Can anybody advice me?