Skip to main content
Creates a folder: one by name, or a whole chain by path.
Uploads create folders on demand, so you only need this to set access control before anything lands in them.

Signature

Returns

Access control is inherited

Access control can only be set on a root folder — name= with no parent — and everything beneath it inherits the setting. Create the root first, then upload into it:

Creating a whole path

Every missing folder in the chain is created. The returned Folder is the deepest one.
There is no endpoint for deleting a folder. Clear one by deleting its assets — see delete_media().

Errors