summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* use in objectstore copyRobin Appelman2020-12-073-0/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Apply code style fixesMorris Jobke2020-11-111-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use exceptions for error signaling in writeStreamRobin Appelman2020-07-231-1/+0
| | | | | | this remove the ambiguity when writing zero length files Signed-off-by: Robin Appelman <robin@icewind.nl>
* rollback cache rename if trashbin move failsRobin Appelman2020-07-231-7/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix getDirectoryContent implementation for Jail wrapperRobin Appelman2020-04-301-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Run cs:fix and fix HashWrapper codeMorris Jobke2020-04-151-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return hashes of uploaded content for dav uploadsRobin Appelman2020-04-131-0/+55
| | | | | | | | hashes are set in "X-Hash-MD5", "X-Hash-SHA1" and "X-Hash-SHA256" headers. these headers are set for file uploads and the MOVE request at the end of a multipart upload. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add visibility to all constantsChristoph Wurst2020-04-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-1010-39/+39
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1022-51/+31
| | | | | | | | | | | | | | | 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-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-096-15/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a blank line after the opening tagChristoph Wurst2020-04-094-3/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20033 from nextcloud/s3-seekable-streamRoeland Jago Douma2020-04-062-4/+20
|\ | | | | Enable fseek for files in S3 storage
| * add basic tests for s3 seeking and add some error handling if reopen return ↵Robin Appelman2020-04-012-4/+20
| | | | | | | | | | | | the wrong range Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix testsRobin Appelman2020-04-011-6/+26
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-2710-16/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-2510-16/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-2630-326/+326
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-2612-215/+215
|\ \ | | | | | | Use the shorter phpunit syntax for mocked return values
| * | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-2512-215/+215
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Use lowercase true, false and null constantsChristoph Wurst2020-03-251-2/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* better tests for SimpleFolderRobin Appelman2020-02-281-71/+48
| | | | | | test behavior, not implementation Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add typed events for the filesystem/scannerChristoph Wurst2019-12-132-9/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* REVERT ME: comment out failing gz detection testRoeland Jago Douma2019-12-121-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the unit test to dataProvidersJoas Schilling2019-12-101-42/+77
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move custom definition logic into methodDaniel Kesselberg2019-12-091-3/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Ensure that we don't merge broken json.Daniel Kesselberg2019-12-091-8/+14
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #17833 from nextcloud/propagator-no-negative-sizesRoeland Jago Douma2019-12-041-0/+11
|\ | | | | dont set folder size to negative values during propagation
| * dont set folder size to negative values during propagationRobin Appelman2019-11-261-0/+11
| | | | | | | | | | | | | | | | | | | | normally this shouldn't be a problem, but cache/storage desync might cause this so this adds some failsafe to ensure we dont corrupt the cache further the minimum value is set to -1 instead of 0 in order to triger a background scan on the folder and figure out the size properly Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #18028 from nextcloud/enhancement/user-create-eventsRoeland Jago Douma2019-12-033-5/+8
|\ \ | | | | | | Add typed create user events
| * | Add typed create user eventsChristoph Wurst2019-12-033-5/+8
| | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fix testsJohn Molakvoæ (skjnldsv)2019-12-021-2/+4
|/ / | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Mode to modern phpunitRoeland Jago Douma2019-11-2728-172/+186
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | More fixesRoeland Jago Douma2019-11-271-6/+15
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | More fixesRoeland Jago Douma2019-11-271-2/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make phpunit8 compatibleRoeland Jago Douma2019-11-2743-66/+66
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Files first to use own GenericEventArthur Schiwon2019-11-262-4/+8
|/ | | | | | * those are added to 18 only anyway :) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Some php-cs fixesRoeland Jago Douma2019-11-2217-13/+15
| | | | | | | | | | | * 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>
* fix folder deleteRobin Appelman2019-11-131-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont create empty filecache extended rowsRobin Appelman2019-11-131-1/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose filecache extension data in FileInfoRobin Appelman2019-11-131-213/+236
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store filecache extension fieldsRobin Appelman2019-11-131-0/+61
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #17264 from nextcloud/move-from-storage-wrappersRoeland Jago Douma2019-09-261-20/+97
|\ | | | | handle moveFromStorage within the same storage even when storage wrap…
| * handle moveFromStorage within the same storage even when storage wrappers ↵Robin Appelman2019-09-251-20/+97
| | | | | | | | | | | | | | | | | | | | are applied to the source storage the target storage doesn't need additional handling for wrappers as the wrappers implementation of moveFromStorage already deals with that Any storage based on local storage isn't affected by this as local storage already has it's own way of handling with this Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #17262 from nextcloud/objectstore-remove-cache-on-deleteRoeland Jago Douma2019-09-262-0/+79
|\ \ | | | | | | dont delete cache entries if deleting an object from object store failed
| * | dont delete cache entries if deleting an object from object store failedRobin Appelman2019-09-252-0/+79
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>