Topic ".NET session.listDirectory + Mask/Filter"

Author Message
jfRoland

Guest


Hi,

Is it possible to apply a mask when reading files in a directory when using WinSCP within VS2010

I have to search for files in directories that contains thousands of file. It is really slow if I can't put a filter on my search. (It is possible with WinSCP exe)

For example :

Dim directory As RemoteDirectoryInfo = session.ListDirectory("/export/org/backup/*ZZZ*o") to get all files in directory backup with filename containing ZZZ and ending with o

Thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
WinSCP does not support this. What protocol are you using? Note that most protocols, including FTP and SFTP, does not allow filtering anyway.
_________________
Martin Prikryl
jfRoland

Guest


I use Protocol.Sftp

I thought it exists because it seems to be implemented in WinScp application. In WinScp when you apply a filter before to select directory, it is so fast to get filtered files list that I thought it was filtering at the server level.

Thanks for your reply.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Are you referring to Filter function in WinSCP GUI? This is done on client side.
_________________
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