Apologies, as I am not into Ruby coding, and I am writing a code to get the folder names of the structures from the file path.
For example, if I have a file in E:/aaa/bbb/ccc/filename.jpg
How can I get the folder names aaa, bbb, and ccc? I know only the parent folder ccc to use File.nakeddir, but for aaa and bbb, how to get them?
Thank you!