OpenMetaverse Protocol Library Developers API Documentation
CreateFolder Method (parentID, name, preferredType)
NamespacesOpenMetaverse InventoryManagerCreateFolder(UUID, String, AssetType)
Creates a new inventory folder
Declaration Syntax
C#
public 
UUID 
CreateFolder(
        
UUID 
parentID,
        
string 
name,
        
AssetType 
preferredType
)
Parameters
parentID ( UUID)
ID of the folder to put this folder in
name ( String)
Name of the folder to create
preferredType ( AssetType)
Sets this folder as the default folder for new assets of the specified type. Use
  Copy imageCopy
AssetType.Unknown
to create a normal folder, otherwise it will likely create a duplicate of an existing folder type
Return Value
The UUID of the newly created folder
Remarks
If you specify a preferred type of
  Copy imageCopy
AsseType.Folder
it will create a new root folder which may likely cause all sorts of strange problems

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)