getUserSession()->getUser()->getUID(); $sDataPath .= "/.config/{$sUID}/"; if ($bMkDir && !\is_dir($sDataPath) && !\mkdir($sDataPath, 0700, true)) { throw new \RainLoop\Exceptions\Exception('Can\'t make storage directory "'.$sDataPath.'"'); } } return $sDataPath; } }