Topic "EnumerateRemoteFiles via COM interface"

Author Message
aput
[View user's profile]

Joined: 2017-09-09
Posts: 2
Location: EUR
Martin,

The method Session.EnumerateRemoteFiles cannot be used via COM interface.
That is what you say in the online documentation.

Are there any plans to enable that in the future?

Great package by the way, thanks!

Andre
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27058
Location: Prague, Czechia
That cannot be "enabled". COM does not support generics. It would have to be a different method with interface that's possible in COM.

Will see if more people ask for this.
aput
[View user's profile]

Joined: 2017-09-09
Posts: 2
Location: EUR
Thanks.

I ask because of the wildcard option that is available in session.EnumerateRemoteFiles.

For COM I solved it by writing my own wrapper for session~ListDirectory().

The wrapper adds some crippled code to do the file selection by pattern.

Now I am just hoping you have that wildcard logic lying around, waiting to be added to session~ListDirectory().

Andre
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27058
Location: Prague, Czechia
aput wrote:
Now I am just hoping you have that wildcard logic lying around, waiting to be added to session~ListDirectory().

Check WinSCP source code.

See MaskToRegex method in dotnet/Session.cs.
Advertisements

You can post new topics in this forum

Search

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