I want to get 1000 files out of 5 lakh records or so after fetching files via SFTPItemcollection in c#
SftpItemCollection list = dSftp.GetList();
foreach (SftpItem item in list)
{
dtOutput.Rows.Add(strFileType, item.Name);////, item.Size.ToString(), item.Modified.ToString("dd/MM/yyyy HH:mm:ss"));
WriteLog("strFiletype:" + strFileType + " " + "filename" + item.Name + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss:fff"));
}