Skip to content

Commit

Permalink
Merge dev in main (#8)
Browse files Browse the repository at this point in the history
Fix PHP Warnings (directory for download doesn't exists)
  • Loading branch information
marat2509 authored Mar 9, 2024
1 parent 344f54c commit eaf3d75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/docker-data
/nod32ms.conf/
.ruff_cache/
.ruff_cache/
.vscode/settings.json
4 changes: 4 additions & 0 deletions worker/core/inc/classes/Mirror.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ static protected function single_download($download_files, $onlyCheck = false, $
$time = microtime(true);
Log::write_log(Language::t("Downloading file %s from %s...", $file['file'], $mirror['host']), 3, static::$version);
$out = Tools::ds($web_dir, $file['file']);
$dir = dirname($out);

if (!@file_exists($dir)) @mkdir($dir, 0755, true);

Tools::download_file(
[
CURLOPT_USERPWD => static::$key[0] . ":" . static::$key[1],
Expand Down

0 comments on commit eaf3d75

Please sign in to comment.