summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
* Move storage encoding compatibility warning logicVincent Petry2021-11-192-30/+4
| | | | | | | | | | | The encoding check for file names is now happening the Scanner, and an event will be emitted only if the storage doesn't contain the encoding compatibility wrapper. The event is listened to by the occ scan command to be able to display a warning in case of file name mismatches when they have NFD encoding. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* 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-045-10/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* cast intsRobin Appelman2021-01-271-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle the cache where a cache entry with the correct path has already been ↵Robin Appelman2021-01-271-6/+28
| | | | | | recreated Signed-off-by: Robin Appelman <robin@icewind.nl>
* also repair storage idRobin Appelman2021-01-271-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add command to repair broken filesystem treesRobin Appelman2021-01-271-0/+107
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix database connection usage in the files scannerChristoph Wurst2021-01-112-18/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-302-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-222-2/+2
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-172-2/+2
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+3
| | | | | | | | 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>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-052-2/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-243-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add removal of mounts without storages to files:cleanup commandJulius Härtl2020-07-071-0/+33
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Also always return in app commandsJoas Schilling2020-06-264-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | 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-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-4/+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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+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 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>