private function buildDirectoryForFilename($fileName)
    {
        $dirName = dirname($fileName);
        if (!is_dir($dirName)) {
            $this->log(
                Mustache_Logger::INFO,
                'Creating Mustache template cache directory: "{dirName}"',
                array('dirName' => $dirName)
            );

            @mkdir($dirName, 0777, true);
            // @codeCoverageIgnoreStart
            if (!is_dir($dirName)) {
                throw new Mustache_Exception_RuntimeException(sprintf('Failed to create cache directory "%s".', $dirName));
            }
            // @codeCoverageIgnoreEnd
        }

        return $dirName;
    }
private function buildDirectoryForFilename($fileName)
    {
        $dirName = dirname($fileName);
        if (!is_dir($dirName)) {
            $this->log(
                Mustache_Logger::INFO,
                'Creating Mustache template cache directory: "{dirName}"',
                array('dirName' => $dirName)
            );

            @mkdir($dirName, 0777, true);
            // @codeCoverageIgnoreStart
            if (!is_dir($dirName)) {
                throw new Mustache_Exception_RuntimeException(sprintf('Failed to create cache directory "%s".', $dirName));
            }
            // @codeCoverageIgnoreEnd
        }

        return $dirName;
    }
private function buildDirectoryForFilename ( $ fileName ) { $ dirName = dirname ( $ fileName ) ; if ( ! is_dir ( $ dirName ) ) { $ this -> log ( Mustache_Logger :: INFO , 'Creating Mustache template cache directory: "{dirName}"' , array ( 'dirName' => $ dirName ) ) ; @ mkdir ( $ dirName , 0777 , true ) ; // @codeCoverageIgnoreStart if ( ! is_dir ( $ dirName ) ) { throw new Mustache_Exception_RuntimeException ( sprintf ( 'Failed to create cache directory "%s".' , $ dirName ) ) ; } // @codeCoverageIgnoreEnd } return $ dirName ; }
Create cache directory.

@throws Mustache_Exception_RuntimeException If unable to create directory

@param string $fileName

@return string
Create cache directory .