mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
Removed unused method
This commit is contained in:
parent
e3868ba118
commit
eb6fc14f84
1 changed files with 0 additions and 18 deletions
|
|
@ -26,24 +26,6 @@ namespace OC\Files\Cache;
|
|||
*/
|
||||
class Shared_Watcher extends Watcher {
|
||||
|
||||
/**
|
||||
* @brief get file owner and path
|
||||
* @param string $filename
|
||||
* @return array with the oweners uid and the owners path
|
||||
*/
|
||||
private static function getUidAndFilename($filename) {
|
||||
// FIXME: duplicate of Updater::getUidAndFilename()
|
||||
$uid = \OC\Files\Filesystem::getOwner($filename);
|
||||
\OC\Files\Filesystem::initMountPoints($uid);
|
||||
|
||||
if ($uid != \OCP\User::getUser()) {
|
||||
$info = \OC\Files\Filesystem::getFileInfo($filename);
|
||||
$ownerView = new \OC\Files\View('/' . $uid . '/files');
|
||||
$filename = $ownerView->getPath($info['fileid']);
|
||||
}
|
||||
return array($uid, '/files/' . $filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* check $path for updates
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue