Login  
Search All Forums
Dart Home | PowerTCP SFTP & SSH for .NET | Custom Development Reply | PowerTCP SFTP & SSH for .NET Topics | Forums   
AuthorForum: PowerTCP SFTP & SSH for .NET
Topic: Search pattern in List method ?
kvitepus

From: 0580 OSLO, Norway
Posts: 3
Member Since: 11/28/07
posted March 16, 2021 4:13 PM

The List method of the Sftp class does not contain a way to filter the contents of directory, by entering a search pattern with wildcards etc.

How can this be done without writing lots of custom code ?

br
Else Marie
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted March 16, 2021 4:52 PM

Hello,

SFTP does not implement this functionality, so this is not possible via SFTP commands, which is why it is not available via the List method. We have implemented convenience methods for Put() and Get() that accept a wildcard argument such as:
http://dotnet.dart.com/help/ptsshnet/webframe.html#Dart.Ssh~Dart.Ssh.Sftp~Get(String,String,Boolean,Boolean,CopyMode).html
Which may be what you are looking for. Additional wildcard functionality however will require custom coding on your end; or if you are interested in custom development from us to provide this functionality, please let us know.

Alternatively, you could connect to your server via SSH, and process wildcard listing command responses as desired.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP SFTP & SSH for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX