aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
...
* Cast to int #32837Markus Zeller2022-11-071-1/+1
| | | | Signed-off-by: Markus Zeller <git@markuszeller.com>
* Allow scanning for metadata with occ scan:file --generate-metadataCarl Schwan2022-10-111-16/+33
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #32874 from bill-mcgonigle/patch-1Simon L2022-06-171-1/+1
|\ | | | | Mention missing files subdir
| * Mention missing files subdirBill McGonigle2022-06-141-1/+1
| | | | | | | | | | Many users are getting confused by the inaccurate error message "Home storage for user $user not writable" because the storage *is* writable. The actual issue is a missing files/ subdirectory. cf. https://help.nextcloud.com/t/home-storage-for-user-not-writable/10831/7 By mentioning the possible cause in the error message, users are going to be able to rapidly solve their problem rather than bang their heads against the screen, Google, and eventually forums to find out that the error message is wrong in their case. Yes, it would be better to detect and precisely describe the fault, or fix the problem automatically, but until then, be kind to the users for the next however many years.
* | Use {$var} instead of ${var} for PHP 8.2 compatibilityCôme Chilliet2022-06-141-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix issue #31692 of occ files:scancld4h2022-04-261-1/+1
| | | | | | occ files:scan reports error "Implicit conversion from float XXX to int loses precision" Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com>
* Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-242-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move storage encoding compatibility warning logicVincent Petry2021-11-172-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>