|PstReaderGetPstRootFolders Method (Boolean)|
public PstFolderCollection GetPstRootFolders( bool includeSubFolders )
Public Function GetPstRootFolders ( includeSubFolders As Boolean ) As PstFolderCollection
The returned folders may contain their own sub-folders and other items like e-mail messages, contacts, appointments, tasks, etc.
includeSubFolders is true, you'll get all the folders on all nesting levels as a single flat list. When iterating through this list, you can use Name property to get full folder name including all parent folder names. ShortName gives you the name of the folder itself.
If you're not using flat list and specified includeSubFolders as false, you can still get the list of sub-folders for each folder using its GetPstSubFolders(Boolean) method (and then recursively repeat the same if sub-folders have their own sub-folders, etc).
The delimiter which is used to separate levels of folder names is: "\".