Dir["mydir/?ub*"] # => ["mydir/ruby_script.rb", "mydir/subdirectory"] Dir["mydir/.*"] # => ["mydir/.", "mydir/..", "mydir/.hidden_file"]