Commit Graph

9 Commits (feat/database/query-result-fetch-associative-fetch-num)

Author SHA1 Message Date
Robin Windey d7a73ffdf1 Rename since/until in verbose message
Signed-off-by: GitHub <noreply@github.com>
2023-08-18 07:25:39 +07:00
Robin Windey acf0b4ce34 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-08-18 07:25:39 +07:00
Robin Windey 52d77eb9fe Make scope parsing more readable
Signed-off-by: GitHub <noreply@github.com>
2023-08-18 07:25:39 +07:00
Robin Windey ee66518ca2 Decouple from groupfolders app & remove PSALM warnings
Signed-off-by: GitHub <noreply@github.com>
2023-08-18 07:25:39 +07:00
Robin Windey 98dd02b467 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-08-18 07:25:39 +07:00
Christopher Ng 7c430a8afc fix(trashbin): Truncate long filenames
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-05-31 19:06:42 +07: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 +07:00
Robin Appelman 90cfa31533 more concise output, code style fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-30 15:44:02 +07:00
cahogan dfe045699b Add trashbin:restore occ command
Signed-off-by: cahogan <caitlin.hogan@swiftsolar.com>
2022-03-30 15:44:02 +07:00