summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Wrapper/Quota.php
Commit message (Collapse)AuthorAgeFilesLines
* only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-09-071-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix quota typing for 32bits after forward port from 25Côme Chilliet2023-04-011-2/+2
| | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Make it clear that file sizes may be float on 32bitsCôme Chilliet2023-04-011-7/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove quota value type for 32-bit systemsVincent Petry2023-04-011-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Switch logical operators (and|or)Git'Fellow2022-09-121-18/+12
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* get quota for user only when neededRobin Appelman2022-09-011-20/+51
| | | | | | always apply the wrapper but have the wrapper get the quota lazily only when an operation where quota is applied is performed Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-3/+3
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-3/+3
| | | | | | | | | | | | 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-161-1/+2
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Make sure root storage is valid before checking its sizeJohn Molakvoæ (skjnldsv)2020-11-091-1/+4
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Check if quota should be applied to path when creating directoriesJulius Härtl2020-09-081-2/+9
| | | | | | | | | This fixes an issue where the files_trashbin hierarchy of a user could not been created as the mkdir operations were blocked by the quota storage wrapper. Even with 0 quota, users should be able to have a trashbin for external storages. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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 global used space in quota wrappen when external storage is includedRobin Appelman2020-03-041-9/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check for free space on touchJulius Härtl2019-05-281-0/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow chunked uploads even if your quota is not sufficientRoeland Jago Douma2018-10-241-1/+1
| | | | | | | | Fixes #11485 This allows uploads to shared folders. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure initial files can be properly createdRoeland Jago Douma2018-06-071-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #9372 from nextcloud/bugfix/4577Morris Jobke2018-05-071-0/+8
|\ | | | | Do not allow folder creation with quota of 0
| * Do not allow folder creation with quota of 0Roeland Jago Douma2018-05-031-0/+8
| | | | | | | | | | | | | | | | | | | | Fixes #4577 Users with a quota of 0 are a special case. Since they can't (ever) create files on their own storage. Therefor it makes no real that they can create folders (and possible share those etc). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Cache is not part of the quotaRoeland Jago Douma2018-05-021-7/+7
|/ | | | | | | | | | | Fixes #7444 Since the quota is calculated on the files. We should allow apps etc to store temp stuff in the <user>/cache Else users can't upload avatars for example. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace wrong PHPDocsLukas Reschke2017-08-011-4/+5
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+200