I can generate an Object-folder in pimcore via Pimcore\Model\Object\Folder::create()
. Unfortunately there is no such function in Asset\Folder
.
Has anyone an idea how to generate an Asset-folder without hacking it into the DB?
It is also possible to use
Asset\Service::createFolderByPath("/this/is/a/example/");
for generate folders in the asset directory. The advantage is that it generate the folders recursively.