aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * 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>
| * | add IFileInfo::getParentIdRobin Appelman2023-09-041-0/+4
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | only gather dependencies for trashbin wrapper onceRobin Appelman2023-08-181-33/+30
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix(files_trashbin): Migrate to IEventDispatcher and emit as typed eventJoas Schilling2023-07-192-5/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * files_trashbin: Add OpenAPI specjld31032023-07-132-1/+14
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * feat(files): favoritesJohn Molakvoæ2023-07-051-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * feat(ocp): More specific type for ICapabilities::getCapabilitiesChristoph Wurst2023-07-031-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2023-06-241-1/+1
|/ | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* Correctly react to bad configurationCôme Chilliet2023-06-081-13/+23
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Do not cast sizes to int in Trashbin classCôme Chilliet2023-06-081-29/+24
| | | | | | This helps with 32bits support Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-315-19/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(UserMigration)!: 32-bit supportChristopher Ng2023-05-051-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files_trashbin): set real filename on trashbin downloadJohn Molakvoæ2023-04-111-3/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files_trashbin): previews crop supportJohn Molakvoæ2023-04-061-3/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files_trashbin): migrate to vueJohn Molakvoæ2023-04-062-12/+48
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* add a bit more verbose option for trashbin cleanupRobin Appelman2023-04-031-7/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #36465 from nextcloud/bugfix/trashbin-concurrencyJulius Härtl2023-02-151-24/+0
|\
| * fix(files_trashbin): Remove unnecessary scanner logic when getting versions ↵Julius Härtl2023-02-021-24/+0
| | | | | | | | | | | | from trash Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Silence errors of return type mismatch from Sabre for nowCôme Chilliet2023-02-072-1/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #33047 from nextcloud/fix/ijob-logger-deprecatedCarl Schwan2022-08-231-35/+17
|\ | | | | Deprecated ILogger from IJob
| * Port existing server code to new interfaceCarl Schwan2022-08-081-35/+17
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-3/+4
|/ | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32507 from carlcsaposs/restoreVincent Petry2022-07-121-1/+5
|\ | | | | Sort files by deletion time before restoring in RestoreAllFiles
| * 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>
* | Fix trashbin expiration notice casingChristopher Ng2022-07-061-1/+1
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #33068 from nextcloud/enh/note-trashbin-expirationPytal2022-06-301-1/+1
|\
| * Add trashbin export expiration noticeChristopher Ng2022-06-291-1/+1
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | use size from cache to determine whether to skip the trashbinRobin Appelman2022-06-291-5/+11
|/ | | | | | this way large folders also get skipped Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update method nameChristopher Ng2022-05-301-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move new IMigrator method to a specific interface ISizeEstimationMigratorCôme Chilliet2022-05-301-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Implement getExportEstimatedSize in migratorsCôme Chilliet2022-05-301-0/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm errors fron the end of the baseline fileCarl Schwan2022-05-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix migrators according to exceptionsVincent Petry2022-04-131-4/+6
| | | | | | | | Fixed syntax errors. Removed if condition for copyToFolder since it's void now. Change signature of setMigratorVersions to also be void. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Adapt existing migrators to new APICôme Chilliet2022-04-131-7/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use Migrators id instead of class namesCôme Chilliet2022-04-111-1/+1
| | | | | | | This will help with UI and means migrators can move in namespaces without changing export format. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Extend trashbin migratorChristopher Ng2022-04-081-1/+27
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.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>
* Merge pull request #31575 from nextcloud/enh/add-trashbin-migratorCôme Chilliet2022-03-292-4/+146
|\ | | | | Add trashbin migrator to export and import trashbin data
| * Add a guard to check that trashbin folder is a folderCôme Chilliet2022-03-241-1/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Improve wording of output for trashbin migratorCôme Chilliet2022-03-241-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Rename PATH constants to show if folder or fileCôme Chilliet2022-03-221-7/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Rename $insert var to $qbCôme Chilliet2022-03-171-8/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add trashbin migrator to export and import trashbin dataCôme Chilliet2022-03-172-4/+139
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-241-8/+14
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #28438 from csware/issue-1649John Molakvoæ2021-12-211-3/+14
|\
| * Don't die with LockedException when removing/restoring multiple files from trashSven Strickroth2021-08-191-3/+14
| | | | | | | | | | | | fixes issue #16491 Signed-off-by: Sven Strickroth <email@cs-ware.de>