Session session = new Session();
TransferOptions transferOptions = new TransferOptions();
transferOptions.FileMask = "Your File Mask";
session.Open(Your Connection);
session.GetFiles(remotePath, localPath, false, transferOptions);
TransferOptions transferOptions = new TransferOptions();
transferOptions.FileMask = "Your File Mask";
session.Open(Your Connection);
session.GetFiles(remotePath, localPath, false, transferOptions);