aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-202-11/+11
| | | | 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>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: implement sharding compatible cleanup for various bitsRobin Appelman2024-08-281-36/+66
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2513-47/+47
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2914-278/+33
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat: cleanup filecache_extended items by defaultRobin Appelman2024-04-151-2/+2
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: remove orphaned entries from filecache_extendedDaniel Kesselberg2024-04-151-1/+37
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.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-239-13/+8
| | | | | 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-013-1/+282
|\ | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * Merge pull request #38860 from nextcloud/scanner-change-summaryRobin Appelman2023-07-201-1/+31
| |\ | | | | | | add summary of detected changes to files:scan output
| | * add summary of detected changes to files:scan outputRobin Appelman2023-06-161-1/+31
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add commands to copy/move filesRobin Appelman2023-07-122-0/+255
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fixes Psalm's "InvalidArgument" error.Faraz Samapoor2023-07-121-1/+1
| | | | | | | | | | | | | | I just removed the return type from the "exceptionErrorHandler". There is in fact a hacky solution, that I didn't like: https://github.com/vimeo/psalm/issues/3571 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Fixes Psalm's "LessSpecificReturnStatement" error.Faraz Samapoor2023-07-121-2/+3
| | | | | | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Refactors files app commands.Faraz Samapoor2023-07-1212-211/+156
|/ | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* add utility command for object store objectsRobin Appelman2023-06-094-0/+352
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #37971 from nextcloud/info-file-getRobin Appelman2023-05-103-0/+291
|\ | | | | Add commands for basic file actions
| * minor fixes for get/putRobin Appelman2023-05-092-6/+19
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add command to write a fileRobin Appelman2023-05-043-2/+84
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * move get/delete commands to files namespace, make get take the output as ↵Robin Appelman2023-05-042-0/+196
| | | | | | | | | | | | argument instead of option Signed-off-by: Robin Appelman <robin@icewind.nl>
* | 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>
* [Fix]: scan-app-data conversionEWouters2023-01-031-1/+2
| | | | | | | | | | | | Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935. See https://github.com/nextcloud/server/issues/34283#issuecomment-1288075064 and https://github.com/nextcloud/server/pull/35935#discussion_r1059905594. Closes #34283. Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
* 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>