\mainfolder\folder1\file1\mainfolder\folder2 (empty)\mainfolder\folder3\file2\mainfolder\folder3\file3
This should result in an array with 3 string elements (folder1, folder2 and folder3). In specific I would like to know how to collect these folders, so I can store them in an array. Any suggestions would be appreciated. Thanks in advance.