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

Parameters:

  • pattern (String)

    the search pattern relative the the current working directory

  • (see (Integer)

    File.fnmatch) for the meaning of the flags parameter. Default value is File::FNM_EXTGLOB



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