Topic ".Net assembly ListDirectory not handling wildcard"

Author Message
[View user's profile]

Joined: 2012-10-16
Posts: 1
Location: Chicago
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.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26353
Location: Prague, Czechia
Session.ListDirectory does not handle wildcards.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License