EnumerateRemoteFiles via COM interface

Advertisement

aput
Joined:
Posts:
9
Location:
EUR

EnumerateRemoteFiles via COM interface

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: EnumerateRemoteFiles via COM interface

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.

Reply with quote

aput
Joined:
Posts:
9
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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
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.

Reply with quote

Advertisement

You can post new topics in this forum