The "custom folder struture" part is the only way to actually rename the folders!
You can really easily create a new class that extends that interface and return some path for your models
class CustomPathGenerator implements PathGenerator
{
public function getPath(Media $media) : string
{
if ($media instanceof Post) {
return 'posts/' . $media->id;
}
if ($media instanceof Product) {
return 'products/' . $media->id;
}
}
public function getPathForConversions(Media $media) : string
{
return $this->getPath($media) . 'conversions/';
}
public function getPathForResponsiveImages(Media $media): string
{
return $this->getPath($media) . 'responsive/';
}
}
Don't forget to update the config and point to the class
'path_generator' => CustomPathGenerator::class,