aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/Scan.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-201-7/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-31/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* use correct mode constant of files:scan's --path optionRobin Appelman2024-02-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-3/+3
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* add named metadata eventMaxence Lange2023-11-201-6/+14
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Support getting and setting metadata in DAV requestsLouis Chemineau2023-11-081-7/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* IFilesMetadataMaxence Lange2023-11-071-3/+12
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge branch 'master' into refactor_files_app_commandsFaraz Samapoor2023-08-011-1/+27
|\ | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * add summary of detected changes to files:scan outputRobin Appelman2023-06-161-1/+31
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Refactors files app commands.Faraz Samapoor2023-07-121-24/+13
|/ | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Add an error counterCôme Chilliet2023-05-041-20/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Only show error stack trace on very verbose levelCôme Chilliet2023-05-021-6/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Do not stop at the first PHP error/warning in files:scanCôme Chilliet2023-04-271-11/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* better error messages if the users home is not writable during scanningRobin Appelman2023-04-051-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* 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.
* 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-241-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move storage encoding compatibility warning logicVincent Petry2021-11-171-15/+2
| | | | | | | | | | | 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>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+0
| | | | 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>
* Fix database connection usage in the files scannerChristoph Wurst2021-01-111-9/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | 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-161-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Also always return in app commandsJoas Schilling2020-06-261-2/+3
| | | | 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>
* 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>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for the filesystem/scannerChristoph Wurst2019-12-131-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+5
| | | | 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>
* Fix occ files:scan-app-data elapsed timeJoel S2019-02-221-1/+1
| | | | 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>
* 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-081-5/+5
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Adjust code for changed method signatureDaniel Kesselberg2018-10-071-16/+10
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* 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-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused variablesMorris Jobke2017-11-061-1/+1
| | | | 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>
* Log files:scan exception, add InterruptedExceptionVincent Petry2017-03-201-8/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>