original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Create cache directory.
  
  @throws Mustache_Exception_RuntimeException If unable to create directory
  
  @param string $fileName
  
  @return string
docstring_tokens: Create cache directory .