#53688ResourceFactory::createFileObject is called from Folder::getFiles directly
Description
sysext/core/Resource/Folder::getFiles directly collects the files from the driver (very expensive!) and creates FileObjects directly.
These FileObjects do not know of their index record!
- The driver already provides a method that only returns the existing identifiers instead of extracting the file’s data.
- In case the IndexRecord is already present, the method calls ResourceFactory::getFile($uid, $indexRecord) otherwise ResourceFactory::getFileObjectByStorageAndIdentifier() is used.