class Net::SFTP::Operations::Dir

def [](path, pattern)

Simply returns the matched entries as an array.
Identical to calling #glob with a +flags+ parameter of 0 and no block.
def [](path, pattern)
  glob(path, pattern, 0)
end