diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-11-02 15:04:56 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-11-13 10:41:33 +0100 |
commit | 84e5b76d3cac223330fc1bc5a83349bd8d23b5f8 (patch) | |
tree | 81713f36b103e9a1368c9d3c4d91290674ecd998 | |
parent | 1e9203cdef7009ef129f0f3e3db6a326d3f4db12 (diff) | |
download | nextcloud-server-84e5b76d3cac223330fc1bc5a83349bd8d23b5f8.tar.gz nextcloud-server-84e5b76d3cac223330fc1bc5a83349bd8d23b5f8.zip |
Add getOwner() method to FileInfo and Node API
-rw-r--r-- | lib/public/files/node.php | 8 | ||||
-rw-r--r-- | lib/public/files/storage.php | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/files/node.php b/lib/public/files/node.php index aa1115f8c28..866b9b6f61f 100644 --- a/lib/public/files/node.php +++ b/lib/public/files/node.php @@ -225,4 +225,12 @@ interface Node extends FileInfo { * @since 6.0.0 */ public function getName(); + + /** + * Get the file owner + * + * @since 9.0.0 + * @return string + */ + public function getOwner(); } diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php index 1c520026777..c42a2d05bc3 100644 --- a/lib/public/files/storage.php +++ b/lib/public/files/storage.php @@ -462,4 +462,10 @@ interface Storage { * @param bool $isAvailable */ public function setAvailability($isAvailable); + + /** + * @param $path path for which to retrieve the owner + * @since 9.0.0 + */ + public function getOwner($path); } |