.Net assembly ListDirectory not handling wildcard

Advertisement

airadam
Joined:
Posts:
1
Location:
Chicago

.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.

Reply with quote

Advertisement

You can post new topics in this forum