Pimcore\Model\Version::getFilePath PHP Method

getFilePath() protected method

Returns the path on the file system
protected getFilePath ( ) : string
return string
    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;
    }