Currently I am fetching all the files from the folder configured after connection to sftp.If the count of files is very large(say 800000 files or so) time out is happening. We want to limit the number of files to be fetched. We are currently fetching the files as below:
SftpItemCollection list = dSftp.GetList(strServerPath + "//" + "*." + extension);
foreach (SftpItem item in list)
{
dtOutput.Rows.Add(strFileType, item.Name);////, item.Size.ToString(), item.Modified.ToString("dd/MM/yyyy HH:mm:ss"));
}