pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.51k stars 380 forks source link

add CloserListerAt #577

Closed drakkan closed 5 months ago

drakkan commented 7 months ago

The ListerAt is stored in the Request state and reused across requests. Some implementations don't store the entire []os.FileInfo buffer in the ListerAt implementation but instead return an open file and get/return []os.FileInfo on request. For these implementation a Close method is required.

The use case is if you want to list a large directory on memory constrained systems.