You also have the shortcut option of
Dir["/path/to/search/*"]
and if you want to find all Ruby files in any folder or sub-folder:
Dir["/path/to/search/**/*.rb"]
More Related Contents:
- Best way to require all files from a directory in ruby?
- How to check if a directory/file/symlink exists with one command in Ruby
- Getting the names of all files in a directory with PHP
- Getting the filenames of all files in a folder [duplicate]
- Ruby’s File.open and the need for f.close
- How to create a file in Ruby
- How to avoid tripping over UTF-8 BOM when reading files
- Iterate through every file in one directory
- Read, edit, and write a text file line-wise using Ruby
- Determining Whether a Directory is Writeable
- How to create directories recursively in ruby?
- Find all CSV files in a directory using Python
- Split string by multiple delimiters
- When do Ruby instance variables get set?
- Logging in Sinatra?
- Is order of a Ruby hash literal guaranteed?
- Running a Ruby Program as a Windows Service?
- RVM and thin, root vs. local user
- Ruby array subtraction without removing items more than once
- Where is it legal to use ruby splat operator?
- Net::ReadTimeout (Net::ReadTimeout) Selenium Ruby
- what does @ stand for in a Ruby function name
- How to get class instances in Ruby? [duplicate]
- Ruby Definition of Self
- Transliteration in ruby
- In Ruby, why does nil[1]=1 evaluate to nil?
- Rails ‘parse_query’ error on server in brand new app
- How do I remove blank elements from an array?
- Comparing folders and content with PowerShell
- How to match something with regex that is not between two special characters?