# BeforeFolderMovedEvent¶

This event is fired before a folder is about to be moved to the Resource Storage / Driver. Listeners can be used to modify a folder name before it is actually moved or to ensure consistency or specific rules when moving folders.

## API¶

class TYPO3\CMS\Core\Resource\Event\BeforeFolderMovedEvent

This event is fired before a folder is about to be moved to the Resource Storage / Driver.

Listeners can be used to modify a folder name before it is actually moved or to ensure consistency or specific rules when moving folders.

getFolder()
Return type: TYPO3CMSCoreResourceFolder
getTargetParentFolder()
Return type: TYPO3CMSCoreResourceFolder
getTargetFolderName()
Return type: string