aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Wrapper
Commit message (Collapse)AuthorAgeFilesLines
* properly use limit and offset for search in Jail wrapperRobin Appelman2021-05-211-7/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-151-16/+97
|\ | | | | do cachejail search filtering in sql
| * adjust testsRobin Appelman2021-01-261-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix search in nested jailsRobin Appelman2021-01-261-19/+35
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix cachjail searching for rootRobin Appelman2021-01-261-3/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * do cachejail search filtering in sqlRobin Appelman2021-01-261-3/+57
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
|/ | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-2/+2
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-262-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-054-5/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated searchByTagRoeland Jago Douma2019-07-262-24/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Avoid calculating folder size for parent that needs scan.Ari Selseng2019-03-062-4/+4
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Properly search the root of a shared external storageRoeland Jago Douma2018-11-051-1/+1
| | | | | | | | | | | Fixes #1020 When an external storage is shared with you in full the root is '' (empty). This adds an extra check for an empty jail basically. Because if the jail is on the empty string. It matches all paths. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* pass `Cache::getMoveInfo` along cache wrappersRobin Appelman2018-10-171-0/+6
| | | | | | fixes cross storage move in some cases Signed-off-by: Robin Appelman <robin@icewind.nl>
* CacheJail should apply limit and offset after searchingRoeland Jago Douma2018-02-071-2/+9
| | | | | | Else the results might not be correct. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not try to get the jailed path if we can't find the idRoeland Jago Douma2018-02-031-0/+4
| | | | | | | | | Fixes #8047 If we can't find the file by id there we should just return null instead of trying to get the jailed path of null. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* delay calculating the shared cache root until it's usedRobin Appelman2017-12-041-9/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-063-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix propagating changes within jail wrapperRobin Appelman2017-07-111-0/+44
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix moving folders out of a cache jailRobin Appelman2017-06-151-1/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use unmasked permissions during scanningRobin Appelman2017-05-181-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Implement webdav SEARCHRobin Appelman2017-03-012-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure we use the correct storage id when scanning a jailed storageRobin Appelman2017-01-251-5/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* make source cache injectable in cache wrappersRobin Appelman2016-11-172-42/+46
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* reuse the known rootinfo in the shared cache when possibleRobin Appelman2016-11-171-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Adding test case for getPathById including a jailed cache where root is just ↵Thomas Müller2016-08-051-1/+3
| | | | empty
* getJailedPath expects $path to have a trailing / - fixes #25464Thomas Müller2016-08-051-0/+1
|
* Update with robinJoas Schilling2016-07-213-3/+3
|
* Fix othersJoas Schilling2016-07-213-5/+8
|
* Update license headersLukas Reschke2016-05-262-0/+5
|
* Properly get the internal path for a cachejail moveRoeland Jago Douma2016-04-301-1/+1
|
* Merge branch 'master' of https://github.com/d--j/core into d--j-masterThomas Müller2016-04-252-4/+18
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-243-0/+655