Log in
Model

CreateByPaths

Magento\MediaGallery\Model\Directory\Command\CreateByPaths

What it does

This class creates directories in Magento's media storage based on provided file paths.

Developers use this when they need to programmatically create folder structures in the media gallery, such as during media import operations or when organizing media assets.

It validates paths against exclusion rules and uses the WYSIWYG storage to create the physical directories.

Public Methods

  • execute()