diff options
author | scambra <sergio@entrecables.com> | 2012-07-06 12:22:21 +0200 |
---|---|---|
committer | virtual <virtual@o-hal.entrecables.com> | 2012-09-19 21:31:29 +0200 |
commit | 2b5133a1c443512dcf87d59cc84425bc8400df84 (patch) | |
tree | d266aed4e690fdd4393e42431984d43320926dde /lib/filestorage | |
parent | 518ca0ac58c7cf762d0fc51f75cc886cedd495b0 (diff) | |
download | nextcloud-server-2b5133a1c443512dcf87d59cc84425bc8400df84.tar.gz nextcloud-server-2b5133a1c443512dcf87d59cc84425bc8400df84.zip |
check free space using folder's owner
Diffstat (limited to 'lib/filestorage')
-rw-r--r-- | lib/filestorage/common.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php index 351714437c5..7028df1eb02 100644 --- a/lib/filestorage/common.php +++ b/lib/filestorage/common.php @@ -279,4 +279,13 @@ abstract class OC_Filestorage_Common extends OC_Filestorage { public function hasUpdated($path,$time) { return $this->filemtime($path)>$time; } + + /** + * get the owner of a path + * @param $path The path to get the owner + * @return string uid or false + */ + public function getOwner($path) { + return OC_User::getUser(); + } } |