aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #9202 from nextcloud/feature/1332/trashbin_davRoeland Jago Douma2018-05-0111-0/+892
|\ | | | | Trashbin endpoint in DAV
| * 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-257-0/+557
| | | | | | | | | | | | | | | | | | | | | | 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>
* | move log constants to ILoggerArthur Schiwon2018-04-261-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-5/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated URL functions for OCP\UtilRoeland Jago Douma2018-03-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated isEnabled call from files_trashbinJulius Härtl2018-01-311-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use ::class statement instead of stringMorris Jobke2018-01-291-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused codeMorris Jobke2018-01-261-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-4/+4
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-2/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded check if app is enabledMorris Jobke2017-10-231-4/+2
| | | | | | App code will not be executable if the app is not enabled, because the autoloader refuses to load that class. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to control the trash binBjoern Schiessle2017-09-152-2/+117
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix comparisions in the trashbin appJoas Schilling2017-08-012-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete trash using node API to trigger preview deletionRoeland Jago Douma2017-07-241-6/+23
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve logging of trash bin inconsistenciesMorris Jobke2017-06-231-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle more error casesMorris Jobke2017-05-021-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update comments to NextcloudMorris Jobke2017-04-111-1/+1
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3998 from nextcloud/backport-27032Roeland Jago Douma2017-03-231-1/+5
|\ | | | | Use the expected method depending on the target being a file or folder
| * Use the expected method depending on the target being a file or folderJuan Pablo Villafáñez2017-03-221-1/+5
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix path for files from root folderMorris Jobke2017-03-221-1/+5
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | In the real world id is an initial filenameVictor Dubiniuk2017-03-201-3/+4
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* delete files right away in case of a encryption exceptionBjoern Schiessle2017-03-141-7/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add proper default value for datadirMorris Jobke2017-01-191-1/+1
| | | | | | | * better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2819 from nextcloud/trash-ext-link-uselinkownerRoeland Jago Douma2016-12-231-0/+10
|\ | | | | Fallback to share link owner when no owner found
| * Fallback to share link owner when no owner foundVincent Petry2016-12-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | When creating link shares from external storage, the filesystem cannot find an owner in some scenarios (ex: system-wide mounts). In such cases, fall back to using the current user's trashbin which happens to also be the user who created the link share. Fixes an issue where this scenario made deletion impossible due to missing user information. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | 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-212-10/+67
|/ | | | | | shared folder Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* More testsRoeland Jago Douma2016-11-031-5/+0
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move over files_trashbinRoeland Jago Douma2016-11-031-0/+124
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-282-4/+4
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Also fire a bulk pre- and post-delete hookSteven Bühner2016-09-201-3/+14
|
* Always use the same relative Path (Starting from users home dir. i.e.: ↵Steven Bühner2016-09-201-4/+7
| | | | "/files_trashbin/...")
* Take the same path (with /USERNAME/ as base) for every emmited hooksSteven Bühner2016-09-201-2/+2
|
* Emit hooks for each file before and after all files in trashbin have been ↵Steven Bühner2016-09-201-23/+23
| | | | deleted.
* Fiy typoSteven Bühner2016-09-201-1/+1
|
* Emit Hooks for each file bevore and after all files in trashbin have been ↵Steven Bühner2016-09-201-3/+32
| | | | deleted.
* detect the correct mimetype of the files in the trashbin, therefore we have ↵Bjoern Schiessle2016-09-091-2/+3
| | | | to check the filename without the appended timestamp
* Add occ command to expire the trashbin (#25878)Thomas Müller2016-08-291-0/+127
| | | | | | * Add occ command to expire the trashbin * Fix versions folder in setup check