# BeforeFileMovedEvent¶

This event is fired before a file is about to be moved within a Resource Storage / Driver. The folder represents the “target folder”.

## API¶

class TYPO3\CMS\Core\Resource\Event\BeforeFileMovedEvent

This event is fired before a file is about to be moved within a Resource Storage / Driver.

The folder represents the “target folder”.

getFile()
Return type: TYPO3CMSCoreResourceFileInterface
getFolder()
Return type: TYPO3CMSCoreResourceFolder
getTargetFileName()
Return type: string