aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-202-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-254-18/+18
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(trashbin): Improve documentation of since/until timestamps of restore ↵Joas Schilling2024-07-301-2/+2
| | | | | | trashbin Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-025-101/+13
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Rename since/until in verbose messageRobin Windey2023-08-181-2/+2
| | | | Signed-off-by: GitHub <noreply@github.com>
* Code adjustments according to PR reviewRobin Windey2023-08-181-54/+32
| | | | | | | | | * Delete unnecessary function docs * Rename parameters to 'since' and 'until' * Style: use '&&' instead of 'and' * Add types Signed-off-by: GitHub <noreply@github.com>
* Make scope parsing more readableRobin Windey2023-08-181-9/+10
| | | | Signed-off-by: GitHub <noreply@github.com>
* Decouple from groupfolders app & remove PSALM warningsRobin Windey2023-08-181-13/+18
| | | | Signed-off-by: GitHub <noreply@github.com>
* Let occ trashbin:restore restore also from groupfolders and add additional ↵Robin Windey2023-08-181-29/+173
| | | | | | | | | | | | | filters * Using the TrashManager allows access to all deleted files * Add 'scope' parameter to choose where to restore from (user or groupfolders) * Add 'restore-from' and 'restore-to' date parameters to filter files to be restored by their deletion date * Add 'dry-run' flag to be able to see which files would be restored and being able to adjust the filter parameters accordingly Signed-off-by: GitHub <noreply@github.com>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-311-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* add a bit more verbose option for trashbin cleanupRobin Appelman2023-04-031-7/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* 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>
* 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>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-5/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-242-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* allow admin to configure the max trashbin sizeRobin Appelman2020-07-071-0/+146
| | | | | | | | 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>
* Also always return in app commandsJoas Schilling2020-06-262-4/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-293-0/+3
| | | | 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-102-2/+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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-3/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-4/+4
| | | | | | | | | | | * 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>
* trashbin:cleanup exceptions for invalid optionsLiam Dennehy2018-06-281-4/+6
| | | | | | | * throw on no parameters provided * throw on --all-users and userid provided Signed-off-by: Liam Dennehy <liam@wiemax.net>
* Default behaviour when no users are specified on trashbin:cleanupLiam Dennehy2018-06-281-3/+13
| | | | | | | | * Add option --all-users to explicitly clean all trashbins * Reject no users on commandline and no --all-users * Warn when --all-users and userids are specified Signed-off-by: Liam Dennehy <liam@wiemax.net>
* Update license headersMorris Jobke2017-11-061-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-281-2/+2
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Add occ command to expire the trashbin (#25878)Thomas Müller2016-08-291-0/+127
| | | | | | * Add occ command to expire the trashbin * Fix versions folder in setup check
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-212-4/+6
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move files_trashbin to PSR-4 (#24570)Joas Schilling2016-05-122-0/+178