summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Utils/Scanner.php
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* add summary of detected changes to files:scan outputRobin Appelman2023-06-161-2/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* better error messages if the users home is not writable during scanningRobin Appelman2023-04-051-7/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-7/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Removes misleading error message in occ files:scan for new users.Christian Paier2022-02-051-1/+1
| | | | | | | | | | Previously the occ files:scan command printed an error message for any new users without any files/folders in the data directory. With this change only users with any file/folder is scanned. This fixes #25433. Signed-off-by: Christian Paier <hallo+git@cpaier.com>
* background scan the source storage when a background scan on a storage jail ↵Robin Appelman2021-12-021-4/+0
| | | | | | is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move storage encoding compatibility warning logicVincent Petry2021-11-171-0/+3
| | | | | | | | | | | 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-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-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 the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | 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-21/+35
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+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>
* Do scan the root storage in background scanRobin Appelman2018-07-241-5/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add option to only scan the home storageRobin Appelman2018-06-281-3/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: allow files:scan --shallowBlaok2018-05-181-2/+2
| | | | Signed-off-by: Yuze Chi <i@blaok.me>
* Use ::class statement instead of stringMorris Jobke2018-01-291-2/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix scanner after reviewVincent Petry2017-04-261-2/+3
|
* OCC scanner commit in batchesVincent Petry2017-04-261-6/+38
|
* check for existence before we start the db transactionRobin Appelman2017-04-201-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add PHPDoc and handle exception in ScanAppData as wellMorris Jobke2017-04-191-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* show error when trying to scan non existing pathRobin Appelman2017-04-191-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Skip FailedStorage in background scanVincent Petry2017-03-171-0/+12
| | | | | | | | The background job that scans storages must skip failed storages to avoid potential exceptions, especially when the failed storage comes from a shared storage where the source is not accessible. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Only check for local shared storagesRoeland Jago Douma2017-01-101-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Skip local shares in bkg scan and occ files:scan (#26590)Vincent Petry2017-01-101-5/+15
| | | | | Local shares should only be scanned when doing it for the owner to avoid repeatedly rescanning the same shared storage over and over again for every recipient.
* Store the shared propagator instanceVincent Petry2016-08-101-4/+6
| | | | This instead of recreating it for every call.
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* Merge pull request #24863 from owncloud/propagator-batchingVincent Petry2016-06-101-0/+4
|\ | | | | Propagator batching for the file scanner
| * use propagator batching in the scannerRobin Appelman2016-06-021-0/+4
| |
* | skip scanning for a user when the user is not setup yetRobin Appelman2016-06-081-1/+6
|/
* trigger size calculation after scanning (#24875)Robin Appelman2016-05-301-0/+6
|
* Trigger propagation from the background scannerRobin Appelman2016-05-181-1/+13
|
* triger the propagator from the command line scannerRobin Appelman2016-04-251-0/+16
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+172