aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Sabre
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_trashbin): Original name of the deleted files should be set as ↵Ferdinand Thiessen2024-08-051-0/+5
| | | | | | display name for DAV Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-0213-259/+26
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(trashbin): Add deleted by propertiesChristopher Ng2024-04-231-0/+10
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* chore(trashbin): Add method to get deleted by from trash itemChristopher Ng2024-04-232-0/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* use deletion time instead of mtime in trashbin handlingRobin Appelman2024-01-032-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-312-3/+7
| | | | 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>
* 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>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0413-26/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove trash items from other trash backends when deleting allJulius Härtl2021-03-031-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code according to PSR2Christoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-5/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-2/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-252-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0513-13/+54
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-225-1/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* allow trash backends to overwrite the tooltip for trash itemsRobin Appelman2019-10-053-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store user for trashitem in the trashitemRobin Appelman2018-10-175-22/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix select statementRobin Appelman2018-10-1710-287/+209
| | | | | | | | | | | | | | | fix select statement Make trashbin api modules Apps can register trashbin backends for specific storages, allowing them to modify trashbin behavior for storages The old trashbin implementation has been wrapped in a "legacy" backend, for future work this can be replaced with a new backend that better handles shares while still keeping the legacy backend around to keep existing trash from being accessible Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose additional props from trashbin sabre endpointRobin Appelman2018-09-207-130/+114
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Support fileid propfind on trash endpointRoeland Jago Douma2018-05-116-0/+24
| | | | | | | | | Fixes #9416 In order to support previews on mobile clients they will need the fileid of files in the trashbin. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Trashbin propfind respond to oc:sizeRoeland Jago Douma2018-05-104-0/+14
| | | | | | | In order to display the total size of folders also in the clients (and web) we should return the oc:size. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #9427 from ↵Roeland Jago Douma2018-05-101-1/+4
|\ | | | | | | | | nextcloud/bugfix/noid/no_listing_if_not_in_debug_trash_version If not in debug disable principal listing
| * If not in debug disable principal listingRoeland Jago Douma2018-05-081-1/+4
| | | | | | | | | | | | | | Trashbin and Version should have the same behaviour as the other collections. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Propfind for deletion time of trash filesRoeland Jago Douma2018-05-086-3/+19
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add folder for trashbinRoeland Jago Douma2018-04-2510-74/+156
| | | | | | | | The trashbin home now contains 2 entries restore and trash. Made all files strict. Added more types. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use getType to determine type of entryRoeland Jago Douma2018-04-253-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add propfind properties to trashbinRoeland Jago Douma2018-04-256-10/+126
| | | | | | | * get original filename (without the weird timestamp) * get original location Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add special restore folderRoeland Jago Douma2018-04-257-4/+141
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Emptry trashbinRoeland Jago Douma2018-04-251-1/+1
| | | | | | | A delete on a users trashbin will empty it (the trashbin won't be deleted of course) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* List trashbin in DAVRoeland Jago Douma2018-04-256-0/+544
First steps for #1332 * Add a new DAV collection * List all files in the trashbin for this user * Deleting files from trashbin * Get files from trashbin (just read) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>