Merge branch 'main' into ddd_test

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-02 18:10:03 +01:00
6 changed files with 65 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ class FileSystemManager
public function createMangaDirectory(string $mangaSlug, ?int $year): string
{
$year = $year ?? 'unknown';
$directoryPath = $this->mangaDirectory.'/'.ucfirst($mangaSlug)." ($year)";
$directoryPath = $this->projectDir.'/'.self::CBZ_DIRECTORY.'/'.ucfirst($mangaSlug)." ($year)";
$this->filesystem->mkdir($directoryPath, 0755);
return $directoryPath;