mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Merge pull request #1423 from owncloud/getowner
Add getOwner to Filesystem and View classes
This commit is contained in:
commit
f7258cc5e8
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue