Topic "Count Property Missing From EnumerateRemoteFiles"

Author Message

I have just installed Version 5.9 including the 5.9 Assemblies which I have added to GAC.

I am trying to use the Count property of the EnumerateRemoteFiles method, but I get an error saying that the property does not exist, here's my code:

Dim filesCount As Int32 = session.EnumerateRemoteFiles("/home/MyFolder", "*.xml", EnumerationOptions.None).Count()

I copied the code from examples.

I did an upgrade install from 5.7 to 5.9, also I have never installed the assemblies before so it's a clean setup as far as that is concerned. I also seached for all instances of WinSCP.exe and WinSCPnet.dll and the only files on the machine come from the 5.9 download.

Please help!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
What example? I'm not aware of any example with this code.

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