Fixed nested directories
This commit is contained in:
parent
4f97035bf4
commit
51cfa20983
|
@ -184,10 +184,10 @@ class TgScraper
|
|||
{
|
||||
$result = realpath($path);
|
||||
if (false === $result) {
|
||||
if (!mkdir($path)) {
|
||||
if (!mkdir($path, 0755, true)) {
|
||||
$path = getcwd() . '/gen';
|
||||
if (!file_exists($path)) {
|
||||
mkdir($path, 0755);
|
||||
mkdir($path, 0755, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue