|
This create a folder on the current MTP device. The PTP name for a folder is "association". The PTP/MTP devices does not have an internal "folder" concept really, it contains a flat list of all files and some file are "associations" that other files and folders may refer to as its "parent".
- Parameters:
-
| device | a pointer to the device to create the folder on. |
| name | the name of the new folder. |
| parent_id | id of parent folder to add the new folder to, or 0 to put it in the root directory. |
- Returns:
- id to new folder or 0 if an error occured
|