diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-04 03:08:13 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-04 03:08:13 -0800 |
commit | f7258cc5e8f10916e78d2b10d18f1cd2fb9ddbca (patch) | |
tree | 6ee6bd17694054000a4628798c289094b09206b4 /lib | |
parent | fee3f805014f3753e11705ff825dd543a2c5e480 (diff) | |
parent | 6093d961a09022c289b34daebecc8ee88c31a50b (diff) | |
download | nextcloud-server-f7258cc5e8f10916e78d2b10d18f1cd2fb9ddbca.tar.gz nextcloud-server-f7258cc5e8f10916e78d2b10d18f1cd2fb9ddbca.zip |
Merge pull request #1423 from owncloud/getowner
Add getOwner to Filesystem and View classes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/filesystem.php | 10 | ||||
-rw-r--r-- | lib/files/view.php | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 47c09acf294..65d9ffab485 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -611,6 +611,16 @@ class Filesystem { } /** + * Get the owner for a file or folder + * + * @param string $path + * @return string + */ + public static function getOwner($path) { + return self::$defaultInstance->getOwner($path); + } + + /** * get the ETag for a file or folder * * @param string $path diff --git a/lib/files/view.php b/lib/files/view.php index 302232b5134..a002ad5040d 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -915,6 +915,16 @@ class View { } /** + * Get the owner for a file or folder + * + * @param string $path + * @return string + */ + public function getOwner($path) { + return $this->basicOperation('getOwner', $path); + } + + /** * get the ETag for a file or folder * * @param string $path |