aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command
Commit message (Collapse)AuthorAgeFilesLines
* feat: move streaming output helps to command base classRobin Appelman2025-03-313-60/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: rework object listingRobin Appelman2025-03-313-38/+42
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add command to list orphan objectsRobin Appelman2025-03-313-72/+151
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add command to list objectsRobin Appelman2025-03-311-0/+119
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add command to get object metadataRobin Appelman2025-03-311-0/+79
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-132-6/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #49407 from nextcloud/feat/occ-files-cleanup-helpDaniel2024-11-211-1/+2
|\ | | | | feat(files): Add help to / update description of `files:cleanup`
| * feat(occ): Add help and update description for `files:cleanup`feat/occ-files-cleanup-helpJosh2024-11-201-1/+2
| | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* | refactor(files): Use functions for all in `occ files:cleanup`refactor/files-cleanupJosh2024-11-201-12/+18
|/ | | | | Tidying. Signed-off-by: Josh <josh.t.richards@gmail.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-1/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(db): Correctly apply query typesGit'Fellow2024-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | fix: psalm fix: error fix: add batch fix: fatal error fix: add batch chore: add batch chore: add batch fix: psalm fix: typo fix: psalm fix: return bool fix: revert Manager
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-152-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>