aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files
Commit message (Collapse)AuthorAgeFilesLines
* refactor(IMimeTypeDetector): use consistent capitalizationchore/consistent-namingFerdinand Thiessen7 days1-6/+6
| | | | | | | | - use consistantly `mimeType` as it is called MIME type - fix issues where implementation and interface had different parameter names (this is an issue since PHP has named parameters). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: add command to list objectsRobin Appelman9 days1-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add command to get object metadataRobin Appelman9 days1-0/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add getParentId to ICacheEntryRobin Appelman12 days1-0/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(IMimeTypeDetector): use correct return typefix/IMimeTypeDetector-typesFerdinand Thiessen2025-03-181-1/+9
| | | | | | | | | | | | | | In PHP array keys that are integers are always kept as integer, meaning the type of the key of `$a = ["1" => "one"]` will be integer not string. While are hacks to circumvent this (case std object with string keys to an assoc. array) those hacks are performance wise awefull and also not needed as in PHP you can always access that element with `$a[1]` or `$a["1"]`. So TL;DR;: do not lie about return types. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: don't use cached root info from shared cache if the watcher has ↵Robin Appelman2025-02-061-0/+6
| | | | | | detected an update Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: psalm and OCP @since declarationsfix/mime-intJohn Molakvoæ2025-02-062-3/+3
| | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* fix: make sure we process mime extensions as stringskjnldsv2025-02-052-0/+16
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): conversion api simplification and conflict checkskjnldsv2025-01-164-47/+69
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge pull request #50196 from nextcloud/fix/template-return-typeArthur Schiwon2025-01-161-1/+1
|\ | | | | docs: Use proper return type for custom template listing
| * docs: Use proper return type for custom template listingfix/template-return-typeJulius Knorr2025-01-151-1/+1
| | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | feat(api): File conversion APIElizabeth Danzberger2025-01-153-0/+131
|/ | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix(files): Correctly copy the cache information on copy operationsLouis Chemineau2024-12-031-0/+7
| | | | | | Needed to copy the `encrypted` flag of encrypted files when those files are two level down in a moved folder. Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(Files\Mount): Add IShareOwnerlessMountprovokateurin2024-11-251-0/+18
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-056-5/+56
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Use more gender neutral languageprovokateurin2024-10-141-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Storage): Make all parameter types strong typesprovokateurin2024-10-077-119/+48
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #48438 from nextcloud/fix/bring-back-zip-eventFerdinand Thiessen2024-10-071-4/+26
|\ | | | | fix(dav): Emit `BeforeZipCreatedEvent` when creating folder zip archive
| * fix(dav): Emit `BeforeZipCreatedEvent` when creating folder zip archivefix/bring-back-zip-eventFerdinand Thiessen2024-09-291-4/+26
| | | | | | | | | | | | This is required to not break behavior on zip download (apps should be able to react to zip download especially for shares). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | docs: Folder.get throws a NotPermittedException exceptionDaniel Kesselberg2024-09-301-0/+1
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(IStorage): Use false instead of bool intersection type to match ↵fix/istorage/return-typesprovokateurin2024-09-261-10/+10
| | | | | | implementations Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Use SPDX headers and property promotion in new filesCôme Chilliet2024-09-231-24/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(trashbin): Port files trashbin events to IEventDispatcher/IEventListenerCarl Schwan2024-09-231-0/+52
| | | | | | | | oc_hooks is deprecated and will at some point be removed Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: use a proper `@param` tag for IConstructableStorage constructor parameterCôme Chilliet2024-09-231-1/+1
| | | | Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* fix: Move storage constructor to specific interfaceCôme Chilliet2024-09-232-8/+27
| | | | | | That allows Wrappers to use DI and not care about the constructor Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-197-7/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(psalm): Fix @throws annotationsfix/psalm/throws-annotationsprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Storage): Document getOwner() can return falseprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Improve typing and phpdoc commentsCôme Chilliet2024-09-161-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Remove deprecated Storage::search method instead of moving it to IStorageCôme Chilliet2024-09-161-9/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Fix psalm issues, put back private versions of getter in private ↵Côme Chilliet2024-09-161-0/+2
| | | | | | Storage interface Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix other uses of removed Storage interfaceCôme Chilliet2024-09-161-0/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-162-447/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Replace __CLASS__ with ::class referencesrefactor/self-class-referenceChristoph Wurst2024-09-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #47511 from nextcloud/artonge/chore/is_encrypted_descriptionLouis2024-08-281-1/+3
|\ | | | | chore: Improve `FileInfo::isEncrypted` description
| * chore: Improve isEncrypted descriptionLouis Chemineau2024-08-271-1/+3
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | feat(templates): add support for checkboxes in template fillerElizabeth Danzberger2024-08-274-16/+140
|/ | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-255-14/+14
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-121-0/+26
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: PHP formattingElizabeth Danzberger2024-07-253-19/+11
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Fix static analysis errorsElizabeth Danzberger2024-07-253-0/+35
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* feat: Add support for filling fields to backend componentsElizabeth Danzberger2024-07-251-1/+11
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix(api): Add alias to `Field`Elizabeth Danzberger2024-07-251-3/+4
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Make field index a string for better id/index supportElizabeth Danzberger2024-07-251-1/+1
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Correct name of `InvalidFieldTypeException` class fileElizabeth Danzberger2024-07-251-0/+0
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Add proper field typesElizabeth Danzberger2024-07-251-1/+5
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Remove commentsElizabeth Danzberger2024-07-251-3/+0
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Add `InvalidFieldType` exceptionElizabeth Danzberger2024-07-252-1/+18
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: `Field` and `FieldType` implementationElizabeth Danzberger2024-07-252-8/+32
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Add Field and FieldType back to server APIElizabeth Danzberger2024-07-252-0/+30
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>