update mount point if file_target changed
This commit is contained in:
parent
844b1e3fc6
commit
0ce07bb6c4
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue