mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
Avoid mkdir warning
This commit is contained in:
parent
f0fa37c1f3
commit
b97bd4edf0
1 changed files with 5 additions and 2 deletions
|
|
@ -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 = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue