From 6093d961a09022c289b34daebecc8ee88c31a50b Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Sat, 2 Feb 2013 18:50:40 -0500
Subject: [PATCH] Add getOwner to Filesystem and View classes

---
 lib/files/filesystem.php | 10 ++++++++++
 lib/files/view.php       | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 262fde320a..c00b42d9c4 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -610,6 +610,16 @@ class Filesystem {
 		return self::$defaultInstance->getPath($id);
 	}
 
+	/**
+	* 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
 	 *
diff --git a/lib/files/view.php b/lib/files/view.php
index 302232b513..a002ad5040 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -914,6 +914,16 @@ class View {
 		return $files;
 	}
 
+	/**
+	* 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
 	 *
-- 
GitLab