Method: XFTP::Session::SFTP#each_io
- Defined in:
- lib/xftp/session/sftp.rb
#each_io ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Calls the block once for each entry in the current directory on the remote server and (asynchronously) yields a filename and StringIO object to the block
113 114 115 116 117 118 |
# File 'lib/xftp/session/sftp.rb', line 113 def each_io each_file do |filename| io = get filename yield filename, io end end |