mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
131dbe03f8
commit
995c3d8114
1 changed files with 13 additions and 2 deletions
|
@ -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}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue