summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Skip version and trash expiry for users that never logged inJörn Friedrich Dreyer2016-08-101-1/+1
|
* Update with robinJoas Schilling2016-07-214-4/+4
|
* Fix apps/Joas Schilling2016-07-2111-18/+29
|
* Update license headersLukas Reschke2016-05-269-12/+12
|
* Add wrapper for NFD encoding workaroundVincent Petry2016-05-201-1/+1
|
* Move files_trashbin to PSR-4 (#24570)Joas Schilling2016-05-1211-0/+226
|
* use the cache for trash listingRobin Appelman2016-05-031-46/+38
|
* Chunk the users correctly in the trashbin and versions background jobJoas Schilling2016-04-201-39/+12
|
* apps/files_trashbin: Fix typos in comments (found and fixed by codespell)Stefan Weil2016-03-301-1/+1
| | | | | | Fix also a wrong word. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Properly check path validity before deleting to trashVincent Petry2016-03-041-1/+1
| | | | | This prevents deleting the whole "files" folder of the user whenever $ownerPath is empty. This can happen in concurrency situations.
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Update author informationLukas Reschke2016-03-012-1/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Skip users with no trashbinVictor Dubiniuk2016-02-241-0/+6
|
* get the actual user instead of a federated cloud idBjoern Schiessle2016-02-181-40/+62
| | | | | | $view->getUidAndFilename($filename); returns the federated cloud id in case of a federated share. But in this case we need the local user who "owns" the file which is the current logged in user in case of a federated share
* Merge pull request #22451 from owncloud/use-proper-user-folderThomas Müller2016-02-171-6/+10
|\ | | | | Handles null as return code and uses proper UserFolder in trashbin
| * Handles null as return code and uses proper UserFolder in trashbinMorris Jobke2016-02-161-6/+10
| |
* | Don't resize trash when no userVincent Petry2016-02-161-2/+5
|/ | | | Happens when overwriting files on federated shares.
* Consolidate getQuota and setQuota methods in User instanceArthur Schiwon2016-02-091-4/+1
|
* Merge pull request #21117 from owncloud/owner-file-existsThomas Müller2016-01-151-13/+6
|\ | | | | Only return an owner if the file exists + improved getUidAndFilename
| * handle not found in trash hookRobin Appelman2016-01-111-1/+5
| |
| * de-deplicate getUidAndFilenameRobin Appelman2016-01-111-12/+1
| |
* | Merge pull request #21544 from owncloud/trashbin-permissionsThomas Müller2016-01-151-0/+3
|\ \ | | | | | | set etag and permission fields for trashbin entries
| * | set etag and permission fields for trashbin entriesRobin Appelman2016-01-081-0/+3
| |/
* / Happy new year!Thomas Müller2016-01-128-12/+13
|/
* Use proper public API for OC_Helper::getFileNameMimeTypeMorris Jobke2015-12-171-1/+1
|
* Fix thrashbin wrapper when no user is loggedinRobin Appelman2015-12-111-2/+3
|