mount users home before write/read file to it, necessary to deal with external homes

This commit is contained in:
Björn Schießle 2013-02-22 13:15:47 +01:00
parent 51d050c935
commit 9edec542c5
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Storage {
private static function getUidAndFilename($filename) { private static function getUidAndFilename($filename) {
$uid = \OC\Files\Filesystem::getOwner($filename); $uid = \OC\Files\Filesystem::getOwner($filename);
\OC\Files\Filesystem::initMountPoints($uid);
if ( $uid != \OCP\User::getUser() ) { if ( $uid != \OCP\User::getUser() ) {
$info = \OC\Files\Filesystem::getFileInfo($filename); $info = \OC\Files\Filesystem::getFileInfo($filename);
$ownerView = new \OC\Files\View('/'.$uid.'/files'); $ownerView = new \OC\Files\View('/'.$uid.'/files');