diff --git a/src/MediaCollections/Filesystem.php b/src/MediaCollections/Filesystem.php index ad76d56de..12a0011f0 100644 --- a/src/MediaCollections/Filesystem.php +++ b/src/MediaCollections/Filesystem.php @@ -332,18 +332,6 @@ public function getMediaDirectory(Media $media, ?string $type = null): string $directory = $pathGenerator->getPathForResponsiveImages($media); } - $diskDriverName = in_array($type, ['conversions', 'responsiveImages']) - ? $media->getConversionsDiskDriverName() - : $media->getDiskDriverName(); - - $diskName = in_array($type, ['conversions', 'responsiveImages']) - ? $media->conversions_disk - : $media->disk; - - if (! Str::contains($diskDriverName, ['s3', 'gcs'], true)) { - $this->filesystem->disk($diskName)->makeDirectory($directory); - } - return $directory; }