I am writing a program to read a directory of nested directories and files and get back a nested array that matches the file/directory structure.
I have the following:
dirs = File.join(<file_path>, "**", "*")
dirs_array = Dir.glob(dirs)
When I prints dirs_array, I get back a list of all the file paths but it's not in array format. However, when I call 'dirs_array.class' the output is Array. What am I missing here? And how do I get the dirs_array to print in array format?