How to Work With Directories in Ruby
Did you know that you can navigate your file system with Ruby? With the Ruby “Dir” class. You can list directory entries, change your current directory & even create new folders! Here’s an example: filenames = Dir.entries(“.”) This entries method returns an array of filename entries. Every entry is a string, so you’ll need to … Read more