protected function realizeDir($key)
    {
        $path = $this->getPath($key);

        if (!$this->files->exists($dir = dirname($path))) {
            $this->files->mkdir($dir);
        }

        return $path;
    }