make sure that we have a path relative to data/user/files to work with

This commit is contained in:
Bjoern Schiessle 2014-05-27 23:50:44 +02:00 committed by Robin Appelman
parent 0ce07bb6c4
commit 9a48e87253
1 changed files with 3 additions and 2 deletions

View File

@ -289,8 +289,9 @@ class Shared extends \OC\Files\Storage\Common {
public function rename($path1, $path2) {
$relPath1 = \OCA\Files_Sharing\Helper::stripUserFilesPath($path1);
$relPath2 = \OCA\Files_Sharing\Helper::stripUserFilesPath($path2);
// we need the paths relative to data/user/files
$relPath1 = $this->getMountPoint() . '/' . $path1;
$relPath2 = $this->getMountPoint() . '/' . $path2;
if ($this->isUpdatable('')) {