aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Command/RestoreAllFiles.php
Commit message (Collapse)AuthorAgeFilesLines
* 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>