Maintenance Ruby 3.4 gets fixes, but no new features. 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.4.1/lib/rubygems/util.rb, line 103
def self.glob_files_in_dir(glob, base_path)
Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) }
end
Globs for files matching pattern inside of directory, returning absolute paths to the matching files.