don't check if target dir exists when using the default share target directory
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
0f84994e73
commit
e9c9754cec
|
@ -237,6 +237,10 @@ class Helper {
|
|||
return $path;
|
||||
}
|
||||
|
||||
public static function isUsingShareFolder() {
|
||||
return \OC::$server->getConfig()->getSystemValue('share_folder', '/') !== '/';
|
||||
}
|
||||
|
||||
/**
|
||||
* get default share folder
|
||||
*
|
||||
|
|
|
@ -88,7 +88,7 @@ class SharedMount extends MountPoint implements MoveableMount {
|
|||
$mountPoint = basename($share->getTarget());
|
||||
$parent = dirname($share->getTarget());
|
||||
|
||||
if (!$this->recipientView->is_dir($parent)) {
|
||||
if (Helper::isUsingShareFolder() && !$this->recipientView->is_dir($parent)) {
|
||||
$parent = Helper::getShareFolder($this->recipientView);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue