update mount point if file_target changed

This commit is contained in:
Bjoern Schiessle 2014-05-27 22:43:20 +02:00 committed by Robin Appelman
parent 844b1e3fc6
commit 0ce07bb6c4
1 changed files with 5 additions and 2 deletions

View File

@ -24,8 +24,9 @@ class SharedMount extends Mount implements MoveableMount {
public function __construct($storage, $mountpoint, $arguments = null, $loader = null) {
// first update the mount point before creating the parent
self::verifyMountPoint($arguments['share']);
parent::__construct($storage, $mountpoint, $arguments, $loader);
$newMountPoint = self::verifyMountPoint($arguments['share']);
$absMountPoint = '/' . \OCP\User::getUser() . '/files' . $newMountPoint;
parent::__construct($storage, $absMountPoint, $arguments, $loader);
}
/**
@ -51,6 +52,8 @@ class SharedMount extends Mount implements MoveableMount {
$share['file_target'] = $newMountPoint;
$share['unique_name'] = true;
}
return $newMountPoint;
}
/**