We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7689f30 commit 288d193Copy full SHA for 288d193
lib/net/sftp/operations/dir.rb
@@ -60,7 +60,7 @@ def glob(path, pattern, flags=0)
60
path = path.chop if path.end_with?('/') && path != '/'
61
62
results = [] unless block_given?
63
- queue = entries(path).reject { |e| e.name == "." || e.name == ".." }
+ queue = entries(path).reject { |e| %w(. ..).include?(e.name) }
64
while queue.any?
65
entry = queue.shift
66
0 commit comments