Class: Net::SFTP::Operations::Readdir

Class | Net::SFTP::Operations::Readdir
In: | lib/net/sftp/operations/readdir.rb
Parent: | Abstract

Implements the `readdir` operation. This will handle the continuous calls to `readdir` until the entire contents of the directory have been read, returning them in a single array.

### Methods

do_name do_status perform

### Public Instance methods

do_name( items )

Invoked when the server returns a list of "names". Requests `readdir` again, automatically.

do_status( code, message, language )

Invoked when a status code is received from the server. If the code is FX_OK or FX_EOF then there is nothing left to read and the callback is invoked. Other status codes are handled by the superclass.

perform( handle )

Performs the operation.

[Validate]