diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 16:40:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 16:40:44 +0200 |
commit | 225ad85e909b3f65d8eda57ef13001b0000e4e76 (patch) | |
tree | 200a4b87436a3b5d07dd4f3dc6d1ecc9a840c2d8 /lib/filesystem.php | |
parent | f7c708b22a12c976e8cd413c83d10deaf1268d64 (diff) | |
download | nextcloud-server-225ad85e909b3f65d8eda57ef13001b0000e4e76.tar.gz nextcloud-server-225ad85e909b3f65d8eda57ef13001b0000e4e76.zip |
add free_space to OC_FILESYSTEM
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index 54b2ad9ce77..033f50e2aba 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -386,5 +386,11 @@ class OC_FILESYSTEM{ return $storage->hash($type,self::getInternalPath($path),$raw); } } + + static public function free_space($path='/'){ + if(self::canRead($path) and $storage=self::getStorage($path)){ + return $storage->free_space($path); + } + } } ?> |