I'm not sure I fully understand the question. What do you mean by 'divided' folder? A folder that has multiple (2 or more) child folders, or something else?
On the image you provided, what data you want to retrieve? Eg. the folder structure (all folders + their parent <-> child relations) or something else?
I want to distinguish the KD-TEST shown in the image as the parent folder. I would also like to know that HK-TEST and JH-TEST are subfolders.
Folder objects have property parent, that returns they parent object, and by checking the type of this property you can determine that HK-TEST and JH-TEST are subfolders because they have a folder as a parent.
Also, folder objects have property childEntity, that returns an array with children of the folder, so you check that KD-TEST have another folders as children.
Thank you very much !!!