mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2025-02-17 04:46:48 +01:00
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…
x
Reference in New Issue
Block a user