Hi,
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?
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.