I use JSCH API and i need to stream the ls method, so to implement this i need to return an Iterator.
Vector< ? > vFiles = m_cSftpChannel.ls( strRemotePath );
for ( int i = 0; i < vFiles.size(); i++ )
int quantityRequested = 100;
Iterator< ? > itRemoteFiles = m_cSftpChannel.ListFiles( sDirectory );
while( itRemoteFiles.hasNext() )
// Returns an array of at most quantityRequested
// objects starting at this object's internal iterator's current position.
Object alLsEntry = itRemoteFiles.next( quantityRequested );
I have started the implementation of this feature, if you have any suggestion or an implementation of this feature please do not hesitate to contact me.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.