aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Add trashbin:restore occ commandcahogan2022-03-301-0/+149
| | | | Signed-off-by: cahogan <caitlin.hogan@swiftsolar.com>
* Merge pull request #31575 from nextcloud/enh/add-trashbin-migratorCôme Chilliet2022-03-292-4/+146
|\ | | | | Add trashbin migrator to export and import trashbin data
| * Add a guard to check that trashbin folder is a folderCôme Chilliet2022-03-241-1/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Improve wording of output for trashbin migratorCôme Chilliet2022-03-241-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Rename PATH constants to show if folder or fileCôme Chilliet2022-03-221-7/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Rename $insert var to $qbCôme Chilliet2022-03-171-8/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add trashbin migrator to export and import trashbin dataCôme Chilliet2022-03-172-4/+139
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-241-8/+14
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #28438 from csware/issue-1649John Molakvoæ2021-12-211-3/+14
|\
| * Don't die with LockedException when removing/restoring multiple files from trashSven Strickroth2021-08-191-3/+14
| | | | | | | | | | | | fixes issue #16491 Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | 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>