List files inside ZIP file located on SFTP server in C#
问题 I need to process folders inside a ZIP file from SFTP server (WinSCP) programmatically through ASP.NET Core. Is there any way where I can get list of files inside ZIP file without downloading to local computer? As the file size would be high and won't be in a consistent manner. Any help would be appreciated. 回答1: With SSH.NET library, it could be as easy as: using (var client = new SftpClient(host, username, password) { client.Connect(); using (Stream stream = client.OpenRead("/remote/path