mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #22729 from nextcloud/fix/object_storage_permissions_shortcut
Run stat less often for objectstorages
This commit is contained in:
commit
d8dea5070b
1 changed files with 10 additions and 0 deletions
|
|
@ -227,6 +227,16 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
|||
}
|
||||
}
|
||||
|
||||
public function getPermissions($path) {
|
||||
$stat = $this->stat($path);
|
||||
|
||||
if (is_array($stat) && isset($stat['permissions'])) {
|
||||
return $stat['permissions'];
|
||||
}
|
||||
|
||||
return parent::getPermissions($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method if you need a different unique resource identifier for your object storage implementation.
|
||||
* The default implementations just appends the fileId to 'urn:oid:'. Make sure the URN is unique over all users.
|
||||
|
|
|
|||
Loading…
Reference in a new issue