Fix failing tests

This commit is contained in:
DariusIII
2026-08-13 14:40:02 +02:00
parent 9af6ba1df5
commit 658937bee1
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -368,6 +368,14 @@ class NzbService
{
$nzbPath = $this->siteNzbPath;
if ($createIfNotExist && ! File::isDirectory($nzbPath)) {
if (! File::makeDirectory($nzbPath, 0775, true) && ! File::isDirectory($nzbPath)) { // @phpstan-ignore booleanNot.alwaysTrue
throw new \RuntimeException(sprintf('Directory "%s" was not created', $nzbPath));
}
File::chmod($nzbPath, 02775);
}
for ($i = 0; $i < $levelsToSplit && $i < 32; $i++) {
$nzbPath .= $releaseGuid[$i].'/';