Log in
Interface

CreateDirectoriesByPathsInterface

Magento\MediaGalleryApi\Api\CreateDirectoriesByPathsInterface

What it does

This interface defines a contract for creating multiple directories in the media gallery file system.

Developers use this when they need to programmatically create folders for organizing media assets, such as during module installation, data migration, or when implementing custom media management features.

It handles batch directory creation and throws exceptions if the operation fails.

Public Methods

  • execute()