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

airadam

.Net assembly ListDirectory not handling wildcard

Calling ListDirectory with a wildcard is throwing an exception.

Ex: session.ListDirectory("/dir/subdir/*.xml");

The WinSCP debug log shows that the method is appending a "/" to the end of the path, which is causing the error:

Command: [ls -- "/dir/subdir/*.xml/"]

I've tested this against FTP and SFTP servers with the same results.

I'm using WinSCP version 5.1.

Thanks.