Ruby では、glob で、/*/* を使うと、1階層下のみ。
/**/* なら、その下を再帰的にすべてたどる

dirs = [ ]; files = [ ]

Dir.glob( 'C:/Users/Owner/Documents/Ruby/selenium/*/*' ) do |path|

if File.directory? path # directory
dirs.push path
else
files.push path
end
end

p dirs, files