private function checkDefaultFolderExists($type = 'share')
{
if ($type === 'user' && \Config::get('lfm.allow_multi_user') !== true) {
return;
}
$path = $this->getPath($type);
if (!File::exists($path)) {
File::makeDirectory($path, $mode = 0777, true, true);
}
}