|
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. |
| storage_id | id of the storage to add this new folder to. notice that you cannot mismatch storage id and parent id: they must both be on the same storage! Pass in 0 if you want to create this folder on the default storage. |
- Returns:
- id to new folder or 0 if an error occured
|