summaryrefslogtreecommitdiffstats
path: root/lib/private/NotSquareException.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-03-27 17:47:20 +0100
committerRobin Appelman <robin@icewind.nl>2020-04-20 15:45:04 +0200
commit9735b5d61f8577fea01810b5de3e1dab2ec6c77e (patch)
treec4e9d71dae03a4d49eec41fe09ec07243e355e83 /lib/private/NotSquareException.php
parentb1a90da34730a6c119df4cb5b992177d8dbedeca (diff)
downloadnextcloud-server-9735b5d61f8577fea01810b5de3e1dab2ec6c77e.tar.gz
nextcloud-server-9735b5d61f8577fea01810b5de3e1dab2ec6c77e.zip
Add method to storage backends to get directory content with metadata
Currently you need to use `opendir` and then call `getMetadata` for every file, which adds overhead because most storage backends already get the metadata when doing the `opendir`. While storagebackends can (and do) use caching to relief this problem, this adds cache invalidation dificulties and only a limited number of items are generally cached (to prevent memory usage exploding when scanning large storages) With this new methods storage backends can use the child metadata they got from listing the folder to return metadata without having to keep seperate caches. Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/NotSquareException.php')
0 files changed, 0 insertions, 0 deletions