summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Storage.php
Commit message (Collapse)AuthorAgeFilesLines
* only gather dependencies for trashbin wrapper onceRobin Appelman2023-09-071-12/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use parent wrapper to properly handle moves on the same source/target storageJulius Härtl2021-05-141-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* disable trasbin during the moveFromStorage fallbackRobin Appelman2021-02-171-8/+51
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Do not obtain userFolder of a federated userRoeland Jago Douma2021-01-221-1/+1
| | | | | | | | Federated shares are somewhat special. So we can't move the files from the main user and we should try to get it from the intialized root already. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only attempt to move to trash if a file is not in appdataJulius Härtl2020-11-131-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix variable name and add spaces around path in info log lineMorris Jobke2020-09-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the owner from the storageRoeland Jago Douma2019-08-071-3/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Emit moveToTrash event only for the deleting userJulius Härtl2019-08-061-8/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix select statementRobin Appelman2018-10-171-145/+35
| | | | | | | | | | | | | | | 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>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove deprecated isEnabled call from files_trashbinJulius Härtl2018-01-311-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-2/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check userExists later, saves lookups for appData_INSTANCEID useridsArthur Schiwon2017-12-011-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to control the trash binBjoern Schiessle2017-09-151-2/+44
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix comparisions in the trashbin appJoas Schilling2017-08-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* delete files right away in case of a encryption exceptionBjoern Schiessle2017-03-141-7/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make code more robustBjoern Schiessle2016-12-211-10/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* check for class name in case class is not loadedBjoern Schiessle2016-12-211-2/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add a copy to the owners trash bin if another user moves a file out of a ↵Bjoern Schiessle2016-12-211-7/+62
| | | | | | shared folder Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-1/+2
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Add wrapper for NFD encoding workaroundVincent Petry2016-05-201-1/+1
|
* Move files_trashbin to PSR-4 (#24570)Joas Schilling2016-05-121-0/+189