aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Command/RestoreAllFiles.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-16/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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-251-8/+8
| | | | 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-021-15/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* 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>
* 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>