End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Util.glob_files_in_dir
glob_files_in_dir(glob, base_path)
lib/rubygems/util.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/util.rb, line 99
def self.glob_files_in_dir(glob, base_path)
if RUBY_VERSION >= "2.5"
Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) }
else
Dir.glob(File.expand_path(glob, base_path))
end
end
Globs for files matching pattern inside of directory, returning absolute paths to the matching files.