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
a396c37693
commit
237e4b7521
|
@ -237,6 +237,10 @@ class Helper {
|
|||
return $path;
|
||||
}
|
||||
|
||||
public static function isUsingShareFolder() {
|
||||
return \OC::$server->getConfig()->getSystemValue('share_folder', '/') !== '/';
|
||||
}
|
||||
|
||||
/**
|
||||
* get default share folder
|
||||
*
|
||||
|
|
|
@ -89,7 +89,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