Log in
Model

SynchronizeFiles

Magento\MediaGallerySynchronization\Model\SynchronizeFiles

What it does

This class synchronizes media files in the filesystem with their corresponding database records in Magento's Media Gallery.

Developers use this when they need to ensure media assets stored on disk are properly registered in the database, typically after bulk file uploads or when files have been modified.

It intelligently checks modification timestamps to only import files that have actually changed.

Public Methods

  • execute()