Skip to content

Commit

Permalink
Merge branch '383-develop' of github.com:383Project/nova-media-hub in…
Browse files Browse the repository at this point in the history
…to 383-develop
  • Loading branch information
SteJaySulli committed Jan 31, 2023
2 parents ade64be + 9373d88 commit 5ee16ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MediaHandler/Support/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public function getMediaDirectory(Media $media, ?string $type = null): string
? $media->disk
: $media->conversions_disk;

$this->filesystem->disk($diskName)->makeDirectory($directory);
if (!empty($directory)) {
$this->filesystem->disk($diskName)->makeDirectory($directory);
}

return $directory;
}
Expand Down

0 comments on commit 5ee16ed

Please sign in to comment.