Read Remote Zip File with SSH

Hello
I need to open a remote zip file using ssh connection that I get with the package sftp package - github.com/pkg/sftp - pkg.go.dev

but zip package library and ssh can’t match the File type.

Is there a way to scan a remote zipped file ?

Thank you in advances

Best Regads

Can’t you use zip.NewReader with an sftp.File? It looks like sftp.File implements io.ReaderAt.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.