aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_external): wrong type for external mount idfix/files_external_scanBenjamin Gaussorgues10 days1-1/+1
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Ensure we only pass string to writeln()Joas Schilling2024-10-072-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* ci: Fix psalm by typing the QuestionHelperJoas Schilling2024-10-071-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(filesexternal): Remove unneeded 3rdparty library usebugfix/noid/remove-3rdparty-useJoas Schilling2024-10-025-13/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-202-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-253-6/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-0613-262/+36
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat: add command to scan external storages directlyRobin Appelman2024-03-063-74/+290
| | | | | | the main use case of this over simply scanning through is the ability to provide a username and/or password for cases where login credentials are used Signed-off-by: Robin Appelman <robin@icewind.nl>
* full uppercase constMaxence Lange2024-02-241-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix: replace `Account name` by `Login`John Molakvoæ2024-02-131-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-1/+1
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* fix(files_external) Add sensitive S3 values redacted by list commandJosh2024-02-071-2/+2
| | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-3/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Adds parameter type hints.Faraz Samapoor2023-09-282-2/+2
| | | | | | Co-authored-by: Côme Chilliet <come.chilliet@nextcloud.com> Signed-off-by: Faraz Samapoor <fsa@adlas.at> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Refactors files_external app commands.Faraz Samapoor2023-09-2811-206/+137
| | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Refactors "strpos" calls in /apps/files_external to improve code readability.Faraz Samapoor2023-06-021-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* handle not being able to write file for notify self-testRobin Appelman2023-04-061-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Attempt at reducing psalm errorsCôme Chilliet2023-01-201-4/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Additional type hinting found by psalmCarl Schwan2022-10-181-4/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add more typing to FilesExternal commandsCarl Schwan2022-10-1711-139/+52
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Specify that userId can be nullCarl Schwan2022-10-161-1/+1
| | | | | | | This fixes a psalm false-positive where the method is called with null, since the method actually handle this correctly already Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix return value of updateParentCarl Schwan2022-10-161-8/+3
| | | | | | | Port to executeStatement to guarantee that we will return an int and remove a deprecated method call at the same time Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Port away from removed IDBConnection->isConnected methodCarl Schwan2022-10-161-6/+4
| | | | | | | Instead track if the reconnection was successful with return value of connect method Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix some typesRobin Appelman2021-06-162-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0411-12/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* add dry-run option to files_external:notifyRobin Appelman2021-03-241-32/+52
| | | | | | and add some additional logging Signed-off-by: Robin Appelman <robin@icewind.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-2/+2
| | | | | | | | | | 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>
* Merge pull request #23021 from nextcloud/notify-saved-login-authblizzz2020-10-131-14/+56
|\ | | | | allow using saved login credentials for notify
| * also give storage backend it's change to manipulate the configRobin Appelman2020-10-071-0/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * allow using saved login credentials for notifyRobin Appelman2020-09-231-14/+47
| | | | | | | | | | | | when only the user is provided, we use to provided user to try and get saved login credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add option to disable notify self checkRobin Appelman2020-09-231-1/+10
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-246-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-4/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-101-1/+1
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also always return in app commandsJoas Schilling2020-06-2610-11/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-299-0/+9
| | | | 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>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-109-9/+9
| | | | 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 elseif instead of else ifChristoph Wurst2020-04-102-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0511-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use two queries to mark parent as outdatedAri Selseng2019-03-181-15/+40
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Correct log attributeAri Selseng2019-03-041-1/+1
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Added logging to Notify command.Ari Selseng2019-03-041-2/+9
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Reconnect to DB after timeout for Notify command. Fixes #14479Ari Selseng2019-03-031-10/+48
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Fix a bug with smb notify having leading slash when it should notAri Selseng2019-03-011-1/+1
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>