Model
Synchronize
Magento\MediaGallerySynchronization\Model\Synchronize
What it does
This class synchronizes media files from storage with the media gallery database records in Magento 2.
Developers would use this when importing media assets, ensuring the file system and database are in sync, or after bulk media operations.
It processes files in batches and cleans up any database records for non-existent files.
Public Methods
- execute()