Classes/Utility/FAL.php
public static function indexFile(\TYPO3\CMS\Core\Resource\File $file = null, $origFileName, $newFileName, $width, $height, array $metadata = [])
    {
        if ($file === null) {
            $file = static::findExistingFile($origFileName);
        }
        if ($file !== null) {
            static::updateIndex($file, $width, $height, $metadata);
        } else {
            static::createIndex($newFileName, $width, $height);
        }
    }
public static function indexFile(\TYPO3\CMS\Core\Resource\File $file = null, $origFileName, $newFileName, $width, $height, array $metadata = [])
    {
        if ($file === null) {
            $file = static::findExistingFile($origFileName);
        }
        if ($file !== null) {
            static::updateIndex($file, $width, $height, $metadata);
        } else {
            static::createIndex($newFileName, $width, $height);
        }
    }
public static function indexFile ( \ TYPO3 \ CMS \ Core \ Resource \ File $ file = null , $ origFileName , $ newFileName , $ width , $ height , array $ metadata = [ ] ) { if ( $ file === null ) { $ file = static :: findExistingFile ( $ origFileName ) ; } if ( $ file !== null ) { static :: updateIndex ( $ file , $ width , $ height , $ metadata ) ; } else { static :: createIndex ( $ newFileName , $ width , $ height ) ; } }
Creates/updates the index entry for a given file.

@param \TYPO3\CMS\Core\Resource\File $file
@param string $origFileName
@param string $newFileName
@param integer $width
@param integer $height
@param array $metadata EXIF metadata
@return void
Creates / updates the index entry for a given file .