summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/home.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-11-08 12:57:28 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-12 16:15:43 +0100
commit32a703ab3643842d3262fcc8c6ac014c3e54d8ea (patch)
tree308797a77a829d12c67852b90a2c0bfc5358bc4a /lib/private/files/storage/home.php
parenta745901d50c67728c0a8b7f0a8820ebd6992bad6 (diff)
downloadnextcloud-server-32a703ab3643842d3262fcc8c6ac014c3e54d8ea.tar.gz
nextcloud-server-32a703ab3643842d3262fcc8c6ac014c3e54d8ea.zip
Do not use -1 as the size for the root folder of the home storage
Diffstat (limited to 'lib/private/files/storage/home.php')
-rw-r--r--lib/private/files/storage/home.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php
index bf1d6017cbf..22753519ad3 100644
--- a/lib/private/files/storage/home.php
+++ b/lib/private/files/storage/home.php
@@ -27,4 +27,11 @@ class Home extends Local {
public function getId() {
return 'home::' . $this->user->getUID();
}
+
+ public function getCache($path = '') {
+ if (!isset($this->cache)) {
+ $this->cache = new \OC\Files\Cache\HomeCache($this);
+ }
+ return $this->cache;
+ }
}