summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
* 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 headers for 18Christoph Wurst2019-12-202-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for the filesystem/scannerChristoph Wurst2019-12-132-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-054-5/+14
| | | | 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-223-3/+4
| | | | | | | | | | | * 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>
* Fix occ files:scan-app-data elapsed timeJoel S2019-02-222-5/+4
| | | | Signed-off-by: Joel S <joel.devbox@protonmail.com>
* Fix-13911-occ-files-scan-elapsed-timeJoel S2019-02-221-4/+3
| | | | Signed-off-by: Joel S <joel.devbox@protonmail.com>
* Merge pull request #11968 from nextcloud/feature/noid/drop-verbose-appscanDaniel Kesselberg2018-11-061-61/+25
|\ | | | | Replace $verbose with VERBOSITY_VERBOSE for scanFiles method
| * Revert changes not related to $verboseDaniel Kesselberg2018-10-221-4/+4
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Replace $verbose with VERBOSITY_VERBOSE for scanFiles methodDaniel Kesselberg2018-10-211-63/+27
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Remove quiet and verbose from Command/ScanDaniel Kesselberg2018-10-211-13/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Replace $verbose with VERBOSITY_VERBOSE for scanFiles methodDaniel Kesselberg2018-10-211-56/+26
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Rename method to abortIfInterruptedDaniel Kesselberg2018-10-082-9/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Adjust code for changed method signatureDaniel Kesselberg2018-10-072-30/+16
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* 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>
* Add option to only scan the home storageRobin Appelman2018-06-281-3/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: allow files:scan --shallowBlaok2018-05-181-3/+8
| | | | Signed-off-by: Yuze Chi <i@blaok.me>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-262-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7075 from nextcloud/remove-unused-variablesRoeland Jago Douma2017-11-072-2/+2
|\ | | | | Remove unused variables
| * Remove unused variablesMorris Jobke2017-11-062-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update license headersMorris Jobke2017-11-062-2/+26
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-222-4/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add PHPDoc and handle exception in ScanAppData as wellMorris Jobke2017-04-191-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* show error when trying to scan non existing pathRobin Appelman2017-04-191-7/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #3965 from nextcloud/downstream-27343Morris Jobke2017-03-231-4/+33
|\ | | | | Providing --path option to transfer-ownership
| * 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 proper name and code styleMorris Jobke2017-03-221-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add files:scanAppData commandRoeland Jago Douma2017-03-221-0/+284
|/ | | | | | | | Fixes https://github.com/nextcloud/server/issues/3041 Add a dedicated command to scan the special appdata dir Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Log files:scan exception, add InterruptedExceptionVincent Petry2017-03-201-8/+10
| | | | 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>
* Before a user is getting scanned the database connection is re-establishedThomas Müller2016-08-291-1/+26
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-213-5/+8
|
* Update license headersLukas Reschke2016-05-262-0/+3
|
* add "unscanned" option to files:scan to triger a background scanRobin Appelman2016-05-191-3/+12
|
* Move Files app to PSR-4 (#24569)Joas Schilling2016-05-123-0/+634
* Move lib/ of Files app to PSR-4 * Move tests to PSR-4