summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Storage
Commit message (Collapse)AuthorAgeFilesLines
* feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-121-0/+26
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-248-160/+23
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): setOwner since docLouis Chemineau2024-05-161-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Pass the mountpoint target user to storages without ownerJulius Härtl2024-04-091-0/+12
| | | | | | | | | | | | | Storages that do not have a dedicated owner (e.g. groupfolders, external storages) currently always assume the current session user as the owner. This leads to several issues when there is no user session but a node is obtained through a user folder. In order to have the correct user available we need to pass the user that is used to setup a mountpoint along to the storage layer as we generally assume that an owner is available for those. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-022-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(OCP): Add since tag for all constantsJoas Schilling2024-02-141-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix file_get_content signatures to make it clear it can return falseCôme Chilliet2023-04-271-1/+1
| | | | | | | In File::getContent, which must return a string, throw an Exception instead of returning false. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix return type of methods returning false on errorCôme Chilliet2023-04-031-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Make it clear that file sizes may be float on 32bitsCôme Chilliet2023-04-011-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(s3): Use multipart upload for chunked uploadingJulius Härtl2023-03-081-0/+70
| | | | | | This allows to stream file chunks directly to S3 during upload. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move back typing to phpdoc to keep backward compatibility in OCPCôme Chilliet2023-02-071-1/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Strong type filesize related methods to ease 32bits problem findingsCôme Chilliet2023-02-071-4/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Rename file1 and file2 to source and target in Storage abstractionCarl Schwan2022-10-181-6/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-041-0/+35
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* code checker fixes for instanceOfStorageRobin Appelman2021-12-022-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge branch 'master' into imountpoint-ocp-storageJohn Molakvoæ2021-10-226-15/+4
|\
| * Remove some mentions of ownCloud from our api documentationCarl Schwan2021-07-291-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-14/+3
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | dont return private storage interface from public mount interfaceRobin Appelman2021-03-231-1/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2020-12-301-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump icewind/streams from 0.7.1 to 0.7.2Christoph Wurst2020-12-291-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-19/+19
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-19/+19
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Merge pull request #24594 from kofemann/dcacheJulius Härtl2020-12-221-2/+2
|\ \
| * | storage: update IStorage#file_put_contents docs to match usageTigran Mkrtchyan2020-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | The current phpdoc of IStorage#file_put_contents doesnt corresponds to it's actual usage in code, e.g. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
* | | Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-1/+2
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Remove deprecated INotifyStorage::listenMorris Jobke2020-10-281-18/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Annotate that writeStream can throw a GenericFileExceptionJulius Härtl2020-09-101-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-4/+4
| | | | 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 exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-056-7/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-1/+2
| | | | | | | | | | | * 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>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-0/+31
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* extend storage api to allow directly writing a stream to storageRobin Appelman2018-10-311-0/+40
| | | | | | | | | | | this removes the need for temporary storages with some external storage backends. The new method is added to a separate interface to maintain compatibility with storage backends implementing the storage interface directly (without inheriting common) Currently the interface is implemented for objectstorage based storages and local storage and used by webdav uploads Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-062-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace wrong PHPDocsLukas Reschke2017-08-011-4/+4
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add missing PHPDoc and properly throw exceptionMorris Jobke2017-02-131-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add a more powerful notify mechanismRobin Appelman2017-01-271-0/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* minor storage interface tweaksRobin Appelman2017-01-241-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update with robinJoas Schilling2016-07-214-4/+4
|
* Fix othersJoas Schilling2016-07-214-3/+8
|
* fix sinceRobin Appelman2016-07-151-0/+4
|
* add notify support to smb storageRobin Appelman2016-07-141-0/+47
|
* Move \OCP\Files to PSR-4Roeland Jago Douma2016-05-183-0/+570