$file->mediaDir() Returns the absolute path to the media folder for the file and its versions kirby/src/Cms/File.php#L401 $file->mediaDir(): string Return type string Parent class Kirby\Cms\File