summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-06-07 12:07:37 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-06-07 12:07:37 +0200
commit49145a78e9f6f5b185780997de909f3f88e0b676 (patch)
tree3704129feb251dacd6b0eb1eecae34f1a74d8fa3 /lib
parentda583f05fce25a7f2ffadf54509b820bb7bc61e6 (diff)
downloadnextcloud-server-49145a78e9f6f5b185780997de909f3f88e0b676.tar.gz
nextcloud-server-49145a78e9f6f5b185780997de909f3f88e0b676.zip
Make sure initial files can be properly created
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Wrapper/Quota.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php
index a7d5f3101fe..860fce57277 100644
--- a/lib/private/Files/Storage/Wrapper/Quota.php
+++ b/lib/private/Files/Storage/Wrapper/Quota.php
@@ -202,7 +202,8 @@ class Quota extends Wrapper {
}
public function mkdir($path) {
- if ($this->quota === 0.0) {
+ $free = $this->free_space($path);
+ if ($free === 0.0) {
return false;
}