aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/TransferOwnership.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-291-28/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Refactors files app commands.Faraz Samapoor2023-07-121-25/+13
| | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Added support for transfering incoming file shares.Immanuel Pasanec2021-08-271-3/+40
| | | | | | | | | - new option --transfer-incoming-shares=1 | 0 - new config.php option 'transfer-incoming-shares' => true | false The command line option overrules the config.php option. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Stop transfer of ownership between same usersSujith Haridasan2020-10-121-0/+10
| | | | | | Stop the transfer of ownership between same user. Signed-off-by: Sujith Haridasan <sujith.h@gmail.com>
* Also always return in app commandsJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add option to transfer-ownership to move dataTobia De Koninck2020-02-031-2/+8
| | | | | | | | 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>
* Update license headersChristoph Wurst2019-12-051-2/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Extract transfer ownership logic into a reusable serviceChristoph Wurst2019-11-261-220/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Check quota before transfer ownershipRoeland Jago Douma2019-11-131-2/+14
| | | | | | Fixes #15664 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Transfer room shares too with the "files:transfer-ownership" commandDaniel Calviño Sánchez2018-08-081-1/+1
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix transfering ownership of a share to user with same id as receiverDaniel Calviño Sánchez2018-07-241-1/+2
| | | | | | | | | When the ownership of a user share is transfered to the receiver the share is removed, as the receiver now owns the original file. However, due to a missing condition, any share with a group, link or remote with the same id as the user was removed, not only the user shares. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update license headersMorris Jobke2017-11-061-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* improve file transfer codeMorris Jobke2017-03-221-26/+15
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Providing --path option to transfer-ownershipSujith H2017-03-201-4/+44
| | | | | | | | | | | | | | | | This will help user to selectively move the folders specified using --path option, instead of moving entire folder under files directory. Signed-off-by: Sujith H <sharidasan@owncloud.com> Update the integration test for transfer-ownership Update the integration test for transfer-ownership as the new option --path is introduced in the command. Signed-off-by: Sujith H <sharidasan@owncloud.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use a proper date format for transfer ownershipMorris Jobke2017-03-021-1/+1
| | | | | | | * on Windows : is not allowed as filename and doesn't get synced then * uses 2017-03-02 22-00-00 instead of 2017-03-02T22:00:00+00:00 as format Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2109 from nextcloud/oc_26533Morris Jobke2016-11-181-0/+5
|\ | | | | Transfer ownership only analyze home storage
| * Test on storageRoeland Jago Douma2016-11-151-2/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Transfer ownership only analyze home storageVincent Petry2016-11-141-0/+5
| | | | | | | | | | | | | | | | | | | | When transferring ownership, only the local files will be transferred during the rename operation. This means that the analyzing code doesn't need to recurse into any mount points. Furthermore this fixes issues where FailedStorage might appear as mount points as a result of inaccessible external storages or shares. So this makes it more robust.
* | Merge pull request #2125 from nextcloud/downstream-26546Morris Jobke2016-11-151-3/+3
|\ \ | | | | | | Transfer ownership now returns exit code on error
| * | Transfer ownership now returns exit code on error (#26546)Vincent Petry2016-11-141-3/+3
| |/
* | Merge pull request #2115 from nextcloud/oc_26527Roeland Jago Douma2016-11-141-15/+21
|\ \ | | | | | | Skip broken shares when transferring ownership (#26527)
| * | Skip broken shares when transferring ownership (#26527)Vincent Petry2016-11-141-15/+21
| |/
* / First process group shares and then user sharesVincent Petry2016-11-141-1/+1
|/ | | | | | | | This prevents a validation failure where the code checks whether a file is already shared with another user, but the check disables itself when the owner is the same. Processing the groups first prevents the check to kick in too early when the group share still has the old owner while we try transferring the user share.
* Add using casing check/fix for initMountPointsVincent Petry2016-11-021-8/+6
|
* Make sure the UID is correctly casedJoas Schilling2016-10-171-3/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-0/+2
|
* Move Files app to PSR-4 (#24569)Joas Schilling2016-05-121-0/+240
* Move lib/ of Files app to PSR-4 * Move tests to PSR-4