original_string: protected function _createDirectoriesFor($path)
      {
          if (!is_dir($path)) {
              $oldUmask = umask(0);
              if ( !@mkdir($path, $this->_octdec($this->_options['cache_directory_umask']), true)) {
                  $lastErr = error_get_last();
                  umask($oldUmask);
                  Zend_Cache::throwException("Can't create directory: {$lastErr['message']}");
              }
              umask($oldUmask);
          }
      }
code: protected function _createDirectoriesFor($path)
      {
          if (!is_dir($path)) {
              $oldUmask = umask(0);
              if ( !@mkdir($path, $this->_octdec($this->_options['cache_directory_umask']), true)) {
                  $lastErr = error_get_last();
                  umask($oldUmask);
                  Zend_Cache::throwException("Can't create directory: {$lastErr['message']}");
              }
              umask($oldUmask);
          }
      }
code_tokens: protected function _createDirectoriesFor ( $ path ) { if ( ! is_dir ( $ path ) ) { $ oldUmask = umask ( 0 ) ; if ( ! @ mkdir ( $ path , $ this -> _octdec ( $ this -> _options [ 'cache_directory_umask' ] ) , true ) ) { $ lastErr = error_get_last ( ) ; umask ( $ oldUmask ) ; Zend_Cache :: throwException ( "Can't create directory: {$lastErr['message']}" ) ; } umask ( $ oldUmask ) ; } }
docstring: Recursively create the directories needed to write the static file
docstring_tokens: Recursively create the directories needed to write the static file