Avoid mkdir warning

This commit is contained in:
RainLoop Team 2015-12-08 19:59:02 +03:00
parent f0fa37c1f3
commit b97bd4edf0

View file

@ -138,9 +138,12 @@ class File implements \MailSo\Cache\DriverInterface
$sFilePath = $this->sCacheFolder.$this->sKeyPrefix.$sKeyPath; $sFilePath = $this->sCacheFolder.$this->sKeyPrefix.$sKeyPath;
if ($bMkDir && !\is_dir(\dirname($sFilePath))) if ($bMkDir && !\is_dir(\dirname($sFilePath)))
{ {
if (!\mkdir(\dirname($sFilePath), 0755, true)) if (!@\mkdir(\dirname($sFilePath), 0755, true))
{ {
$sFilePath = ''; if (!@\mkdir(\dirname($sFilePath), 0755, true))
{
$sFilePath = '';
}
} }
} }
} }