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

Yes, that's indeed the issue. Does the switch support SFTP?
Guest

It looks like WinSCP is just using the FileZilla source code for FTP, which doesn't seem to like this style of listing, \https://github.com/mirror/winscp/blob/master/source/filezilla/FtpListResult.cpp . I can update and share if we can include it in further releases as well. May just take some time to setup the dev environment, wish there was an easier way for that, like some virtual machine we could log into that had the dev environment all set up.
cheetah

This is a Nortel voice switch, DMS 500, I believe the core OS is UNIX based. Also, I want to say that this listing did work in a previous version of WinSCP, but I am not 100% positive. I tried version 5.7, but that didn't work either.

Thank you for your reply and looking into this for us.
martin

Re: Directory listing with files show in logs, but not in Explorer or with Session.ListDirectory

What FTP server is that? What OS?
cheetah

Directory listing with files show in logs, but not in Explorer or with Session.ListDirectory

When I execute the code Session.ListDirectory, the only RemoteDirectoryInfo.File entry I find is "..", same shows in the WinSCP GUI. This is an older FTP server, but I can list and see fine even with built-in FTP application in Windows with command prompt.

My same methods and code works fine on 12 or so other FTP servers.

### Below is my output from the logs which shows the directory listing
. 2018-04-02 14:21:30.154 Directory listing successful
. 2018-04-02 14:21:40.481 Getting current directory name.
. 2018-04-02 14:21:40.481 Retrieving directory listing...
> 2018-04-02 14:21:40.482 TYPE A
< 2018-04-02 14:21:40.497 200 Command okay.
> 2018-04-02 14:21:40.508 PASV
< 2018-04-02 14:21:40.512 227 Entering Passive Mode (10,1,1,49,13,161)
> 2018-04-02 14:21:40.512 LIST -a
. 2018-04-02 14:21:40.512 Connecting to 10.1.1.49:3489 ...
< 2018-04-02 14:21:41.821 150 File status okay; about to open data connection.
. 2018-04-02 14:21:41.827 Data connection closed
. 2018-04-02 14:21:41.827 A180402000008AMA FIXED 2048 ********
. 2018-04-02 14:21:41.827 R150728070156AMA FIXED 2048 ********
. 2018-04-02 14:21:41.827 R150728121066AMA FIXED 2048 ********
. 2018-04-02 14:21:41.827 R151127074200AMA FIXED 2048 ********
. 2018-04-02 14:21:41.827 R141202092604AMA FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 DIRP_FILESEG FIXED 2048 ********
. 2018-04-02 14:21:41.827 P180327065442AMA FIXED 2048 ********
< 2018-04-02 14:21:41.961 226 Request successful. Closing data connection.
. 2018-04-02 14:21:41.961 Directory listing successful
. 2018-04-02 14:21:41.961 ..;D;0;1899-12-30T05:00:00.000Z;0;"" [0];"" [0];---------;0
. 2018-04-02 14:22:12.189 Sending dummy command to keep session alive.
> 2018-04-02 14:22:12.189 TYPE A
< 2018-04-02 14:22:12.189 200 Command okay.