ElementBrowser must not use dirname() on identifier
There is such a code twice in Elementbrowser
// It's a file // @todo: find the parent folder, right now done a bit ugly, because the file does not // support finding the parent folder of a file on purpose $folderIdentifier = dirname($fileOrFolderObject->getIdentifier());
this breaks every driver which is not based on directories
Updated by Ernesto Baschny over 7 years ago
- Status changed from New to Accepted
The comment says it all. :)
I guess we need further API. The Storage has to ask the Driver is it is "hierarchical" and only then provide a "Folder" hierarchy in the first place. We already have an AbstractHierarchicalFilesystemDriver superclass on top of LocalDriver.
On the other hand we do not have an alterantive Element Browser for non-hierarchical Drivers yet.