aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Trash
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-06-027-134/+14
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore(trashbin): Add method to get deleted by from trash itemChristopher Ng2024-04-233-31/+26
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-2/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* IFilesMetadataMaxence Lange2023-11-071-0/+10
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* add IFileInfo::getParentIdRobin Appelman2023-09-041-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-311-1/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Show most recently deleted files first in trash canOrzu Ionut2021-11-091-1/+1
| | | | Signed-off-by: Orzu Ionut <orzu.ionut@gmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-14/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | 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>
* Remove unused importsChristoph Wurst2020-03-252-4/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-057-7/+21
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* dont expose metadata etag for nowRobin Appelman2019-11-131-4/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose filecache extension data in FileInfoRobin Appelman2019-11-131-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow trash backends to overwrite the tooltip for trash itemsRobin Appelman2019-10-052-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* prevent recursion when moving a file to the trashbinRobin Appelman2019-03-131-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add fallback for trashbin original locationRobin Appelman2019-01-291-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add getExtension() to FileInfoRobin Appelman2018-10-291-0/+4
| | | | | | | this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman <robin@icewind.nl>
* store user for trashitem in the trashitemRobin Appelman2018-10-175-46/+40
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove user parameter from `ITrashItem::getOriginalLocation`Robin Appelman2018-10-173-9/+8
| | | | | | | since the target user is known at the time of creating the trashitem the original location can already be adjusted on a per user level Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix trashbin previews for modular apiRobin Appelman2018-10-173-6/+47
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix select statementRobin Appelman2018-10-177-0/+635
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>