diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 262fde320a1be5301c5bf0f44b478ff4d68ee8df..c00b42d9c44523a77e20e27a3ff8abd9fbd31fa4 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 302232b5134a90056d44f1d09cfbdb2b35082f0f..a002ad5040db2c6a9741377eff194276d974fb3b 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 *