Topic ".Net assembly ListDirectory not handling wildcard"

Author Message
airadam
[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.

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Session.ListDirectory does not handle wildcards.
See http://winscp.net/eng/docs/library_session_listdirectory
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License