Actions
Feature #62830
closedEpic #83669: Improve file list / file browser
Improved folder moving/copying
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-11-10
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:
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\ImportableDriverInterface
withimportFile(\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
Actions