aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External/Scanner.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-06-061-22/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix external share scanner not propagating locking-opt-outRobin Appelman2022-08-031-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Disable locking on federated sharesCarl Schwan2022-08-031-0/+5
| | | | | | | The old inneficiant code didn't do locking and adding locking is creating issues Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Revert "Remove inefficient fed share scanner""Carl Schwan2022-08-031-70/+0
| | | | | | This reverts commit 6667007bf235b90a7dd105c881cf5802b2a3f83e. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Remove inefficient fed share scanner"Carl Schwan2022-06-101-0/+70
| | | | | | This reverts commit ce319143142e2ee998ef4794b04ad684c4ffa911. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove inefficient fed share scannerVincent Petry2022-01-101-70/+0
| | | | | | | | | | Remove scanAll which relies on the "shareinfo" endpoint that returns the full cache tree. The latter can become big for big shares and result in timeouts. Furthermode, the full tree would be retrieved again for each and every detected change which can become expensive quickly. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Handle LocalServerException when scanning external sharesCarl Schwan2022-01-061-2/+11
| | | | | | | | When remoteIsOwnCloud trows LocalServerException, the storage is unavailable and instead of crashing the scanner, ignore the specific storage. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix passing on the parameterJoas Schilling2022-01-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add method to storage backends to get directory content with metadataRobin Appelman2020-04-201-1/+1
| | | | | | | | | | | | | | | | | 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>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-1/+2
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move lib/ to PSR-4Joas Schilling2016-05-251-0/+127