Commit graph

9 commits

Author SHA1 Message Date
Robin Windey
f42481f893 Rename since/until in verbose message
Signed-off-by: GitHub <noreply@github.com>
2023-09-22 11:14:54 +00:00
Robin Windey
9630de5674 Code adjustments according to PR review
* Delete unnecessary function docs
* Rename parameters to 'since' and 'until'
* Style: use '&&' instead of 'and'
* Add types

Signed-off-by: GitHub <noreply@github.com>
2023-09-22 11:14:53 +00:00
Robin Windey
3354d61c8e Make scope parsing more readable
Signed-off-by: GitHub <noreply@github.com>
2023-09-22 11:14:53 +00:00
Robin Windey
f5d0264296 Decouple from groupfolders app & remove PSALM warnings
Signed-off-by: GitHub <noreply@github.com>
2023-09-22 11:14:53 +00:00
Robin Windey
fd6769beee Let occ trashbin:restore restore also from groupfolders and add additional 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>
2023-09-22 11:14:53 +00:00
Christopher Ng
4d206376f3 fix(trashbin): Truncate long filenames
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-06-01 09:37:28 +00:00
Carl Csaposs
6f6ccfcc18 Sort files by deletion time before restoring in RestoreAllFiles
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>
2022-07-04 17:13:15 +00:00
Robin Appelman
90cfa31533 more concise output, code style fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-30 15:44:02 +02:00
cahogan
dfe045699b Add trashbin:restore occ command
Signed-off-by: cahogan <caitlin.hogan@swiftsolar.com>
2022-03-30 15:44:02 +02:00