summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(trashbin): Truncate long filenamesChristopher Ng2023-06-015-19/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #36465 from nextcloud/bugfix/trashbin-concurrencyJulius Härtl2023-02-151-24/+0
|\
| * fix(files_trashbin): Remove unnecessary scanner logic when getting versions ↵Julius Härtl2023-02-021-24/+0
| | | | | | | | | | | | from trash Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Silence errors of return type mismatch from Sabre for nowCôme Chilliet2023-02-072-1/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #33047 from nextcloud/fix/ijob-logger-deprecatedCarl Schwan2022-08-231-35/+17
|\ | | | | Deprecated ILogger from IJob
| * Port existing server code to new interfaceCarl Schwan2022-08-081-35/+17
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-3/+4
|/ | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32507 from carlcsaposs/restoreVincent Petry2022-07-121-1/+5
|\ | | | | Sort files by deletion time before restoring in RestoreAllFiles
| * Sort files by deletion time before restoring in RestoreAllFilesCarl Csaposs2022-07-041-1/+5
| | | | | | | | | | | | | | Restoring in order of most recently deleted preserves nested file paths. See https://github.com/nextcloud/server/issues/31200#issuecomment-1130358549 Signed-off-by: Carl Csaposs <carl@csaposs.com>
* | Fix trashbin expiration notice casingChristopher Ng2022-07-061-1/+1
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #33068 from nextcloud/enh/note-trashbin-expirationPytal2022-06-301-1/+1
|\
| * Add trashbin export expiration noticeChristopher Ng2022-06-291-1/+1
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | use size from cache to determine whether to skip the trashbinRobin Appelman2022-06-291-5/+11
|/ | | | | | this way large folders also get skipped Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update method nameChristopher Ng2022-05-301-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move new IMigrator method to a specific interface ISizeEstimationMigratorCôme Chilliet2022-05-301-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Implement getExportEstimatedSize in migratorsCôme Chilliet2022-05-301-0/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm errors fron the end of the baseline fileCarl Schwan2022-05-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix migrators according to exceptionsVincent Petry2022-04-131-4/+6
| | | | | | | | Fixed syntax errors. Removed if condition for copyToFolder since it's void now. Change signature of setMigratorVersions to also be void. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Adapt existing migrators to new APICôme Chilliet2022-04-131-7/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use Migrators id instead of class namesCôme Chilliet2022-04-111-1/+1
| | | | | | | This will help with UI and means migrators can move in namespaces without changing export format. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Extend trashbin migratorChristopher Ng2022-04-081-1/+27
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* more concise output, code style fixesRobin Appelman2022-03-301-31/+43
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>