summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* add mount point to quota warning messageRobin Appelman2020-11-121-0/+1
| | | | | | makes it more clear to the user what the quota applies to Signed-off-by: Robin Appelman <robin@icewind.nl>
* Transfer shares if no path providedJulius Härtl2020-09-171-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Transfer shares of the transferred root nodeJulius Härtl2020-09-171-3/+37
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* show better quota warning for group folders and external storageRobin Appelman2020-08-261-0/+1
| | | | | | instead of showing the generic 'Your storage is full' message, better explain that it's the group folder/external storage that is full Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use constant instead of magic number Morris Jobke2020-08-111-1/+1
| | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not exit if available space cannot be determined on file transferJulius Härtl2020-08-111-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-297-0/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Set exit code if something went wrong.Daniel Kesselberg2020-04-261-12/+20
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add folder argument to files:scan-app-dataRoeland Jago Douma2020-04-221-2/+16
| | | | | | | If you need to rescan something but don't feel like rescanning your whole preview stash. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add visibility to all constantsChristoph Wurst2020-04-105-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1026-35/+3
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-105-23/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove spaces after method or function callChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0913-13/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show the displayname instead of the user idJoas Schilling2020-04-081-19/+34
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Try to use the display name of file transfersJoas Schilling2020-04-081-6/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-316-1/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-274-12/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-254-12/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-265-8/+8
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19777 from nextcloud/fix/viewer-publicJohn Molakvoæ2020-03-121-0/+5
|\ | | | | Properly emit Viewer event on files and files_sharing
| * Use dispatchTypedJohn Molakvoæ (skjnldsv)2020-03-111-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Properly emit Viewer event on files and files_sharingJohn Molakvoæ (skjnldsv)2020-03-111-0/+5
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Unify the code a bitJoas Schilling2020-03-101-16/+36
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use contacts name on federated activitiesJoas Schilling2020-03-101-11/+35
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Combine move activities as wellJoas Schilling2020-03-101-1/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not allow transfer ownership when the user isn't the ownerChristoph Wurst2020-03-031-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure that the transfer entry is present in the databaseJulius Härtl2020-02-241-5/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #19412 from nextcloud/fix/19404/make-favorite-publicChristoph Wurst2020-02-211-3/+2
|\ | | | | Make TAG_FAVORITE public
| * Make TAG_FAVORITE publicDaniel Kesselberg2020-02-121-3/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fix event typeJoas Schilling2020-02-061-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow specifying this is the first loginRoeland Jago Douma2020-02-031-2/+9
| | | | | | | On firstlogin we allow non empty target folders. So that for guest transfers the user sees the same UI. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Catch \Error in Transfer::restoreSharesTobia De Koninck2020-02-031-1/+1
| | | | | | | | | This makes the command more fault tolerant. An \Error can happen when e.g. the owner of a share is null. If we don't catch this, the restore process will stop in an unknown state. Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Prevent transferring data to user which never loggedinTobia De Koninck2020-02-031-1/+1
| | | | Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Add option to transfer-ownership to move dataTobia De Koninck2020-02-032-5/+24
| | | | | | | | This will move the home folder of own user to another user. Only allowed if that other user's home folder is empty. Can be used as workaround to rename users. Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Fix Sidebar legacy FileInfoModel requirementJohn Molakvoæ (skjnldsv)2020-01-161-0/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix webdav urlJohn Molakvoæ (skjnldsv)2020-01-101-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #18478 from nextcloud/fix/direct-editing-invalid-editor-idRoeland Jago Douma2019-12-221-3/+3
|\ | | | | Do not generate tokens for editor IDs that do not exist
| * Expose exception message in the responseJulius Härtl2019-12-201-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headers for 18Christoph Wurst2019-12-2010-0/+12
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* added line breaks to incoming transfer notificationSascha Wiswedel2019-12-171-2/+2
| | | | | | wrapped notifications into double quotes to make line breaks possible Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* added patience note for shareeSascha Wiswedel2019-12-171-2/+2
| | | | | | | | note about incoming transfer taken out by background job resolves #18272 Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* transfer ownership dialog word choiceSascha Wiswedel2019-12-171-1/+1
| | | | | | | Use Reject instead of Decline Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* notification polishingSascha Wiswedel2019-12-171-18/+18
| | | | Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* Transfer ownership function polishingSascha Wiswedel2019-12-171-6/+6
| | | | Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* Merge pull request #18359 from ↵blizzz2019-12-131-2/+49
|\ | | | | | | | | nextcloud/fix/18271/dismiss_transfer_ownership_notification Dismiss transferownership notification cancels transfer
| * Dismiss transferownership notification cancels transferRoeland Jago Douma2019-12-111-2/+49
| | | | | | | | | | | | Fixes #18271 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add typed events for the filesystem/scannerChristoph Wurst2019-12-133-22/+17
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18224 from nextcloud/bugfix/noid/direct-editing-pathRoeland Jago Douma2019-12-111-2/+2
|\ | | | | Use file path for direct editing