aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/storage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-16 03:27:50 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-16 03:27:50 +0100
commitd96146a017bd8f7e4573e4555cea2c198fa9fbad (patch)
treeeae31f519b93924a484d2e3f0e4843c95e95cb5d /lib/files/storage
parent425d41aaf93e1cd3a44ddc794414683e8e2c4648 (diff)
downloadnextcloud-server-d96146a017bd8f7e4573e4555cea2c198fa9fbad.tar.gz
nextcloud-server-d96146a017bd8f7e4573e4555cea2c198fa9fbad.zip
Give storage backends the option to define having no known free space
When this is the case only the configured max upload size is taking into account for uploading
Diffstat (limited to 'lib/files/storage')
-rw-r--r--lib/files/storage/common.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php
index 4cdabf1c8a6..4e7a73e5d4a 100644
--- a/lib/files/storage/common.php
+++ b/lib/files/storage/common.php
@@ -301,4 +301,13 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
return implode('/', $output);
}
+
+ /**
+ * get the free space in the storage
+ * @param $path
+ * return int
+ */
+ public function free_space($path){
+ return \OC\Files\FREE_SPACE_UNKNOWN;
+ }
}