aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Show most recently deleted files first in trash canOrzu Ionut2021-11-091-1/+1
| | | | | | | | Signed-off-by: Orzu Ionut <orzu.ionut@gmail.com>
* | Add configuration flag to disable the background job for files_trashbinDaniel Kesselberg2021-10-111-8/+16
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Improve auto expiration hintszaimen2021-08-081-1/+1
|/ | | | | Signed-off-by: szaimen <szaimen@e.mail.de> Co-Authored-By: Pytal <24800714+Pytal@users.noreply.github.com>
* rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-141-3/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0436-66/+27
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Drop \OCP\UserChristoph Wurst2021-05-212-9/+9
| | | | | | Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use parent wrapper to properly handle moves on the same source/target storageJulius Härtl2021-05-141-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix usage of rename executeUpdateChristoph Wurst2021-05-051-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cleanp execute usage in the trashbinRoeland Jago Douma2021-03-111-9/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove trash items from other trash backends when deleting allJulius Härtl2021-03-031-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #25568 from nextcloud/move-storage-disable-cacheRobin Appelman2021-03-021-8/+51
|\ | | | | disable trasbin during the moveFromStorage fallback
| * disable trasbin during the moveFromStorage fallbackRobin Appelman2021-02-171-8/+51
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-2/+2
|/ | | | | | | | | | 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>
* Do not obtain userFolder of a federated userRoeland Jago Douma2021-01-221-1/+1
| | | | | | | | Federated shares are somewhat special. So we can't move the files from the main user and we should try to get it from the intialized root already. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-121-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make oc_files_trash.auto_id a bigintVincent Petry2020-12-231-2/+1
| | | | | | | Adjusted migration. Added to occ command to update existing tables. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-165-5/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24094 from nextcloud/bugfix/noid/trash-appdataMorris Jobke2020-11-191-1/+1
|\ | | | | Only attempt to move to trash if a file is not in appdata
| * Only attempt to move to trash if a file is not in appdataJulius Härtl2020-11-131-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use query builder instead of OC_DB in trashbinJoas Schilling2020-11-061-21/+56
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict query when searching for versions of trashbin filesJulius Härtl2020-10-141-14/+43
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* dont hold a transaction during the move to trashRobin Appelman2020-09-301-5/+7
| | | | | | because moving to trash can take a long time, keeping a transaction active for the duration can lead to issues Signed-off-by: Robin Appelman <robin@icewind.nl>
* Delete files that exceed trashbin size immediatelyJulius Härtl2020-09-231-0/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix variable name and add spaces around path in info log lineMorris Jobke2020-09-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change free space calculationDaniel Kesselberg2020-08-311-4/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-3/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21954 from nextcloud/techdebt/noid/bootstrap-files_trashbinblizzz2020-08-072-50/+38
|\ | | | | Use IBootstrap for the files_trashbin app
| * Use IBootstrap for the files_trashbin appMorris Jobke2020-07-232-50/+38
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix object store trashbin handlingRobin Appelman2020-07-301-3/+10
| | | | | | | | | | | | object stores are "special" given how they interact with the cache on their own Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rollback cache rename if trashbin move failsRobin Appelman2020-07-231-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix moving files from external storage to object store trashbinRobin Appelman2020-07-231-2/+2
|/ | | | | | | | | | | | having the "cache rename" after the "storage move" caused the target to get the fileid from the source file, without taking care that the object is stored under the original file id. By doing the "cache rename" first, we trigger the "update existing file" logic while moving the file to the object store and the object gets stored for the correct file id Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #21658 from nextcloud/trashbin-configurable-sizeMorris Jobke2020-07-212-0/+156
|\ | | | | allow admin to configure the max trashbin size
| * allow admin to configure the max trashbin sizeRobin Appelman2020-07-072-0/+156
| | | | | | | | | | | | | | | | this allows an admin to configure the max trashbin size instead of always relying on the users quota. The trashbin size can be configured using the `occ trash:size` command and can be set both globally and per-user Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Clean up container usage in files trashbinChristoph Wurst2020-07-161-2/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move files_trashbin to migrationsJoas Schilling2020-07-061-0/+87
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also always return in app commandsJoas Schilling2020-06-262-4/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add locking to resolve concurent move to trashbin conflictsRobin Appelman2020-05-061-13/+39
| | | | | | | uses a lock to prevent two requests from moving a file to the trashbin concurrently (causing sql duplicate key errors) Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-297-0/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code according to PSR2Christoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-103-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1013-25/+8
| | | | | | | | | | | | | | | 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-102-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-095-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-3/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>