Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/files
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-12-16 19:58:01 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-12-16 19:58:01 +0400
commitb02a15ceb8dd23a9e07df8a098bfae4a9f13df0d (patch)
treee30f56964b9f52d5032dde072f8394181ff8a8ca /lib/files
parente98e98f38d005f47d9656b9fd418a106f1af5134 (diff)
add getOwner to Home Storage
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/storage/home.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/files/storage/home.php b/lib/files/storage/home.php
index 533fe5fe390..82924f9869a 100644
--- a/lib/files/storage/home.php
+++ b/lib/files/storage/home.php
@@ -28,4 +28,14 @@ class Home extends Local {
public function getId() {
return 'home::' . $this->user;
}
+
+ /**
+ * get the owner of a path
+ *
+ * @param string $path The path to get the owner
+ * @return string uid or false
+ */
+ public function getOwner($path) {
+ return $this->user;
+ }
}