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

Re: That did it.

You are welcome.

I also got a response from Cerberus:

Hello Martin,

You are absolutely right. I'm not sure how that went undetected for so long, but it probably has to do with the relatively small number of clients that use SFTP version 6 (until recently).

I've fixed the issue and tested it against a slightly older version of WinSCP. The next minor release will have the fix in it.

Thanks again.


Regards,

Grant Averett
Cerberus, LLC
Michael.Murdoch

That did it.

I set the advanced options to use version 5 protocols and the entire directory was displayed.

Thank you for figuring this out.
martin

Re: Only 117 files displayed

Thanks. It's a bug in an implementation of SFTP version 6 in the Cerberus SFTP server.
The psftp and FileZilla use SFTP version 3, so the bug does not manifest, when using these clients.

I have implemented a workaround for the bug:
https://winscp.net/tracker/1338

I'm sending you a dev version for testing to your email.

Alternatively you can configure WinSCP to use SFTP version 5 or lower to mitigate the bug:
https://winscp.net/eng/docs/ui_login_sftp

I have reported the bug to Cerberus support:

Hello,

I'm the author of WinSCP SFTP client.

This is based on a report by our common user:
https://winscp.net/forum/viewtopic.php?t=15504

I've found that your SFTP server in SFTP version 6 always sets end-of-list field of SSH_FXP_NAME message to true. As WinSCP relies on this field, it stops reading the listing, resulting in display of an incomplete listing to the user.

Please correct this.

I have implemented a workaround for the bug:
https://winscp.net/tracker/1338

Effectively, WinSCP now ignores the field when connected to the Cerberus SFTP server, not taking advantage offered by SFTP-6 that allows skipping one round-trip.

Have a nice day.

Martin Prikryl
https://winscp.net/
Michael.Murdoch

Yes, I see all files with FileZilla or PSFTP.
martin

Re: Only 117 files displayed

Well, it seems that the SFTP server returns only those 117 files. Can you see more files using any other SFTP client?
Michael.Murdoch

Only 117 files displayed

I am trying to use SFTP to transfer a large number of files. There are over 5,000 files in the directory. When I connect using either the GUI or Command line there are only 117 files listed. I have tried using filters to display additional files, but it says no files found. For instance there are a couple of XML files. If I issue ls *.xml there are no files returned. When issue get * only 117 files are downloaded.

I've attached a log file from the command session.