Fix target path and reuse mtime

This commit is contained in:
Michael Gapczynski 2013-02-26 01:43:04 -05:00
parent 8983465210
commit ea83acedeb
1 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ class Shared_Updater {
} }
} }
// Correct folders of shared file owner // Correct folders of shared file owner
$target = substr($target, 8);
if ($uidOwner !== $uid && $source = \OC_Share_Backend_File::getSource($target)) { if ($uidOwner !== $uid && $source = \OC_Share_Backend_File::getSource($target)) {
\OC\Files\Filesystem::initMountPoints($source['uid_owner']); \OC\Files\Filesystem::initMountPoints($uidOwner);
$source = '/'.$source['uid_owner'].'/'.$source['path']; $source = '/'.$uidOwner.'/'.$source['path'];
$mtime = \OC\Files\Filesystem::filemtime($target); \OC\Files\Cache\Updater::correctFolder($source, $info['mtime']);
\OC\Files\Cache\Updater::correctFolder($source, $mtime);
} }
} }
} }