1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2025-01-07 11:29:44 -03:00
parent 131dbe03f8
commit 995c3d8114

View file

@ -251,8 +251,19 @@ if (!empty($matches)) {
_error_log("Create dir: {$directory}");
make_path($directory);
if(!is_dir($directory)){
die('error on create dir');
if (!is_dir($directory)) {
mkdir($directory);
}
if (!is_dir($directory)) {
$msg = "could not create dir $directory";
_error_log($msg);
echo json_encode([
'error' => true,
'msg' => $msg,
'directory' => $directory,
]);
exit;
}
} else {
_error_log("matches not found: {$ffmpegCommand}");