ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

Feature Request: Streaming `readdir` SFTP call.

Open surjikal opened this issue 7 years ago • 3 comments

I have a SFTP server that hosts a ton of files. I need to list and filter by timestamp. Would be great if I could get a stream of files instead of buffering them all.

surjikal avatar Oct 16 '17 01:10 surjikal

I don't really have an objection to this, but I would prefer to mirror the node fs API. Just recently there was a feature request opened in the node repo requesting this kind of feature (indirectly). If there is at least agreement on the API for that in node, I can probably safely go ahead and eagerly implement it similarly in ssh2-streams.

mscdex avatar Oct 16 '17 01:10 mscdex

If there is at least agreement on the API for that in node, I can probably safely go ahead and eagerly implement it similarly in ssh2-streams.

@mscdex - That sounds good to me. 👍

Marak avatar Oct 16 '17 03:10 Marak

Is there any update on implementing this feature? The feature request you linked: https://github.com/nodejs/node/issues/15699 is closed. Does that mean it's ready to implement in ssh2-streams ?

nylon22 avatar Aug 09 '24 14:08 nylon22