sftp icon indicating copy to clipboard operation
sftp copied to clipboard

add CloserListerAt

Open drakkan opened this issue 1 year ago • 0 comments

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.

drakkan avatar Feb 09 '24 09:02 drakkan