Log in
Model

FileInfo

Magento\Catalog\Model\Category\FileInfo

What it does

This class provides file information and path management utilities for category-related media files in Magento 2.

Developers use it to verify file existence, retrieve MIME types, get file statistics, and resolve file paths relative to the media directory.

It's particularly useful when working with category images and ensuring proper file path handling across different directory structures.

Public Methods

  • _resetState()
  • getMimeType()
  • getStat()
  • isExist()
  • isBeginsWithMediaDirectoryPath()
  • getRelativePathToMediaDirectory()