make sure that we have a path relative to data/user/files to work with
This commit is contained in:
parent
0ce07bb6c4
commit
9a48e87253
|
@ -289,8 +289,9 @@ class Shared extends \OC\Files\Storage\Common {
|
||||||
|
|
||||||
public function rename($path1, $path2) {
|
public function rename($path1, $path2) {
|
||||||
|
|
||||||
$relPath1 = \OCA\Files_Sharing\Helper::stripUserFilesPath($path1);
|
// we need the paths relative to data/user/files
|
||||||
$relPath2 = \OCA\Files_Sharing\Helper::stripUserFilesPath($path2);
|
$relPath1 = $this->getMountPoint() . '/' . $path1;
|
||||||
|
$relPath2 = $this->getMountPoint() . '/' . $path2;
|
||||||
|
|
||||||
if ($this->isUpdatable('')) {
|
if ($this->isUpdatable('')) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue