package com.aspose.email.examples.outlook.pst;

import com.aspose.email.*;
import com.aspose.email.examples.Utils;

public class CreateFolderHierarchyUsingStringNotation {

	public static void main(String[] args) {
		//ExStart: CreateContactInSubFolderOfContacts
		String dataDir = Utils.getSharedDataDir(AccessContactInformationFromPSTFile.class) + "outlook/";

		PersonalStorage personalStorage = PersonalStorage.create(dataDir + "CreateFolderHierarchyUsingStringNotation.pst", FileFormatVersion.Unicode);
		personalStorage.getRootFolder().addSubFolder("Inbox\\Folder1\\Folder2", true);
		//ExEnd: CreateFolderHierarchyUsingStringNotation
	}
}

@@ -231,36 +231,42 @@
 eate
-ContactInSubFolderOfContacts
+FolderHierarchyUsingStringNotation
 %0A%09%09S

Update CreateFolderHierarchyUsingStringNotation.java