File: Rework property update process
|Priority:||Should have||Due date:|
|Assignee:||Andreas Wolf||% Done:||
|Target version:||6.0 beta 2|
updateProperties() method of t3lib_file_File currently does some strange stuff. We should refactor the whole method to get better results from it.
There are two main use cases we need to consider for updating file properties:
- the file has been moved/renamed (= the identifier has changed) and we want the file object to reflect this
- additional information about the file has been fetched from the storage or by some service; this info should be added to the object
The object has to keep track of the updated properties to ease updating the index record (if present).
We have to check within the updateProperties() method if the file is indexed, to trigger an update of the index record afterwards.
|related to File Abstraction Layer - Bug #34351: Uncaught Exception on renamin a folder with subfolder||Accepted||2012-02-27|