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: Unexpected directory listing - documented fix is not working

Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
MaJaeg

Unexpected directory listing - documented fix is not working

Hi there. I'm trying to use WinSCP to get some data off my QNAP NAS, and have been encountering the following error whenever I try and view a directory with large files in it:

Error Listing Directory '/share/MD0_DATA/Disk Volume/Backups'
Unexpected directory listing line '-rw -rw -rw [filename/details]


I searched through a number of other threads and found some other users with the same problem (who like me cannot use the SFTP protocol which I understand solves my problem, and instead can only use SCP, a restriction of the NAS). Example - https://winscp.net/forum/viewtopic.php?t=5749. A solution was devised and documented as per this page: https://winscp.net/tracker/142

And here's where I'm having problems. On that page linked above, it says:
to force inserting a space at given place, one can specify following custom listing command:

ls -la | sed "s/^.\{28\}/& /"


So in the interface I press Ctrl-T to bring up the Console and enter the code exactly - ls -la | sed "s/^.\{28\}/& /". In the black space below a full listing of all of the files appears, which is great, I know they're there. However the right-hand panel does not populate with the list of files, and when I close the Console and go to find the files to copy to my PC, the error message appears again. I just wanted to check that as a first time user of WinSCP, I'm not doing anything stupid or missing something obvious? Many thanks.