protected function getFilePath()
{
$group = floor($this->getCid() / 10000) * 10000;
$path = PIMCORE_VERSION_DIRECTORY . "/" . $this->getCtype() . "/g" . $group . "/" . $this->getCid() . "/" . $this->getId();
if (!is_dir(dirname($path))) {
\Pimcore\File::mkdir(dirname($path));
}
return $path;
}