I'm not sure it will work with Set.
You should use List or an array instead.
Then, assuming that variables are respectively called directory, folder and subfolder :
directory.folder[0].subfolder[0].fileName
You have to use indexes to access the folders and subfolders.