C# How to remote muti getfile with file abc*.txt

Advertisement

naigamo
Joined:
Posts:
1

C# How to remote muti getfile with file abc*.txt

On remote server have file

abc1.txt
aa1.txt
abc2.txt

How to get multi file only abc1.txt and abc2.txt with pattern abc*.txt
Please show sample code C# .NET

transferResult = session.GetFiles("/tmp/*", PathPoolFiles, true, transferOptions);

Thank

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: C# How to remote muti getfile with file abc*.txt

session.GetFiles("/tmp/abc*.txt", PathPoolFiles, true, transferOptions);
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum