diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-16 03:27:50 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-16 03:27:50 +0100 |
commit | d96146a017bd8f7e4573e4555cea2c198fa9fbad (patch) | |
tree | eae31f519b93924a484d2e3f0e4843c95e95cb5d /lib/files/storage | |
parent | 425d41aaf93e1cd3a44ddc794414683e8e2c4648 (diff) | |
download | nextcloud-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.php | 9 |
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; + } } |