0 votes
by (900 points)
edited

When I try to get list from specific path am getting this Sftp Exception.

SftpItemCollection sftpItemCollection = _sftp.GetList(path);

ErrorDescriptionForBug: Rebex.Net.SftpException, Message with invalid length 2209797 was received. ErrorStackTrace: at SftpComponent.GetDirectoryListing(String path)

In that folder contents more than 18000 files. This method works for ftp protocol fine but not sftp.

Any suggestion.

1 Answer

0 votes
by (75.8k points)
edited

The exception occurred because reply of the server exceeded internal threshold of 2MB per reply.

...