Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: .NET session.listDirectory + Mask/Filter

Are you referring to Filter function in WinSCP GUI? This is done on client side.
jfRoland

Re: .NET session.listDirectory + Mask/Filter

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

Re: .NET session.listDirectory + Mask/Filter

WinSCP does not support this. What protocol are you using? Note that most protocols, including FTP and SFTP, does not allow filtering anyway.
jfRoland

.NET session.listDirectory + Mask/Filter

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