diff options
author | Pellaeon Lin <nfsmwlin@gmail.com> | 2013-12-08 22:59:46 +0800 |
---|---|---|
committer | Pellaeon Lin <nfsmwlin@gmail.com> | 2013-12-08 22:59:46 +0800 |
commit | fc607e6bce76e9e2f6f52421bdddece951f629cd (patch) | |
tree | e823cdd256e88b05a551c797e50f74dd32a20c99 /lib/public/util.php | |
parent | 69f2bde324cd491937a90948a23b06a06c2f2400 (diff) | |
download | nextcloud-server-fc607e6bce76e9e2f6f52421bdddece951f629cd.tar.gz nextcloud-server-fc607e6bce76e9e2f6f52421bdddece951f629cd.zip |
Separate PHP upload limit and free space
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 1d76fd1e1f7..cf7ac63ba51 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -458,4 +458,23 @@ class Util { public static function maxUploadFilesize($dir) { return \OC_Helper::maxUploadFilesize($dir); } + + /** + * Calculate free space left within user quota + * + * @param $dir the current folder where the user currently operates + * @return number of bytes representing + */ + public static function freeSpace($dir) { + return \OC_Helper::freeSpace($dir); + } + + /** + * Calculate PHP upload limit + * + * @return number of bytes representing + */ + public static function uploadLimit() { + return \OC_Helper::uploadLimit(); + } } |