Method

MsgDriveServicecreate_folder

Declaration [src]

MsgDriveItem*
msg_drive_service_create_folder (
  MsgDriveService* self,
  MsgDriveItem* parent,
  const char* name,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Creates a new folder called name under parent.

Parameters

parent MsgDriveItem
 

Parent drive item.

 The data is owned by the caller of the function.
name const char*
 

Name of new folder.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
cancellable GCancellable
 

A cancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: MsgDriveItem
 

A newly created MsgDriveItem

 The caller of the method takes ownership of the data, and is responsible for freeing it.