Method: XFTP::Session::SFTP#glob
- Defined in:
- lib/xftp/session/sftp.rb
#glob(pattern, flags: GLOB_OPERATION_FLAGS) ⇒ 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.
For more info (see Dir#glob), it’s almost of the same nature
131 132 133 |
# File 'lib/xftp/session/sftp.rb', line 131 def glob(pattern, flags: GLOB_OPERATION_FLAGS) @sftp.dir.glob(@path.to_s, pattern, flags) { |entry| yield entry.name } end |