How to find the full path of a file in a present in a direct

File.expand_path(item) if File.exist?(item) && File.file?(item)

items_full_path = []
Dir.new(".").entries.each do |item|
  items_full_path << File.expand_path(item) if File.exist?(item) &&
File.file?(item)
end