Method: XFTP::Session::SFTP#files

Defined in:
lib/xftp/session/sftp.rb

#filesArray<String>

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.

Returns an array of filenames in the remote directory.

Returns:

  • (Array<String>)

    an array of filenames in the remote directory



148
149
150
# File 'lib/xftp/session/sftp.rb', line 148

def files
  entries.reject { |filename| directory? filename }
end