#62830Improved folder moving/copying
Description
The methods for moving and copying in
TYPO3\CMS\Core\Resource\ResourceStorage require several improvements:
- Implement moving and copying folders between storages
- Implement conflict handling for moving and copying folders
- renameNewFolder would generate another name for the target folder, when it already exists at target parent
- renameNewFile would add new directories and add the files with new names, when they already exist
- integrate would add new directories and overwrite existing files
- cancel would cancel
- Implement a way to allow custom drivers to import files from other drivers/storages rather than forcing it to add a local copy (see thread on mailing list for upfront discussions):
Will provide anTYPO3\CMS\Core\Resource\Driver\ImportableDriverInterfacewithimportFile(\TYPO3\CMS\Core\Resource\FileInterface $file, $targetFolderIdentifier, $newFileName = null, $removeOriginal = TRUE). When the driver implements this interface, this method instead ofaddFile()will be called in ResourceStorage::moveFile() and ResourceStorage::copyFile() - Allow to moveFile/moveFolder without removing the source file (usefull for migrations between two different drivers)
- Create functional tests for the move and copy methods