1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +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}"); _error_log("Create dir: {$directory}");
make_path($directory); make_path($directory);
if(!is_dir($directory)){ if (!is_dir($directory)) {
die('error on create dir'); 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 { } else {
_error_log("matches not found: {$ffmpegCommand}"); _error_log("matches not found: {$ffmpegCommand}");