Get the full path of the cache file.
@param $name
@author : evalor <master@evalor.cn>
@return string
517859
private function getCacheFileName($name)
    {
        $name = hash($this->options['hash_type'], $name);

        if ($this->options['cache_subdir']) {
            $name = substr($name, 0, 2).DIRECTORY_SEPARATOR.substr($name, 2);
        }

        if ($this->options['prefix']) {
            $name = $this->options['prefix'].DIRECTORY_SEPARATOR.$name;
        }

        $filename = $this->options['path'].$name.'.php';
        $dir      = dirname($filename);
        if (!is_dir($dir)) {
            mkdir($dir, 0755, true);
        }

        return $filename;
    }
1180716
public function findCache(string $name='')
  {
    if ( empty($name) ) {
      # Take first available
      $cache = \reset($this->caches);
      if ($cache === false)
        return null;
    } else {
      # Attempt to find the cache from the list
      $cache = ( $this->caches[\strtolower($name)] ?? null);
    }

    return $cache;
  }
513126
public function get($name)
    {
        $file = $this->cacheFileNameGenaretor($name);
        $file = $this->inPath($file);

        $content = $this->getFileSystem()->read($file);
        $parsed = $this->parseContent($content);

        if (count($parsed) === 2) {
            list($time, $content) = $parsed;

            if ($this->checkTime($time)) {
                return $content;
            }else{
                $this->delete($file);
            }
        }

        return false;
    }
337100
protected function getPath($name) {
		$path = [];
		$matches = null;
		preg_match('/^([^\[]+)/', $name, $matches);
		$path[] = $matches[0];
		preg_match_all('/\[([^\]]*)\]/', $name, $matches);
		$path = array_merge($path, $matches[1]);

		return $path;
	}
545892
protected function getPath($name)
    {
        $name = Str::replaceFirst($this->rootNamespace(), '', $name);

        return $this->plugin->app_path.'/'.str_replace('\\', '/', $name).'.php';
    }
666956
protected function findTemplate($name)
    {
        $finder = App::make('view')->getFinder();

        if (isset($this->cache[$name])) {
            return $this->cache[$name];
        }

        if (File::isFile($name)) {
            return $this->cache[$name] = $name;
        }

        $view = $name;
        if (File::extension($view) === $this->extension) {
            $view = substr($view, 0, -strlen($this->extension));
        }

        $path = $finder->find($view);
        return $this->cache[$name] = $path;
    }
280711
protected static function getFilePath($name)
  {
    $path = str_replace("_", DIRECTORY_SEPARATOR, $name);
    $path = str_replace(__CLASS__, dirname(__FILE__), $path);

    return $path;
  }
1047905
public function path($name = null)
    {
        if ($name !== null) {
            return $this->path().'/'.$name;
        } else {
            return $this->app->basePath().'/'.$this->app['config']->get('addon.path', 'addons');
        }
    }
1298203
protected function getPath($name, $path)
    {
        $timestamp = Carbon::now();

        if (in_array($timestamp, $this->usedTimestamps)) {
            $timestamp->addSecond();
        }
        $this->usedTimestamps[] = $timestamp;

        return $path . '/' . $timestamp->format('Y_m_d_His') . '_' . $this->getName($name) . '.php';
    }
235657
protected function getPathFromExtensionName($name)
    {
        $basePath   = $this->app->make('antares.extension')->getExtensionPathByName($name);
        $paths      = ["{$basePath}/resources/public", "{$basePath}/public"];

        foreach ($paths as $path) {
            if ($this->app->make('files')->isDirectory($path)) {
                return $path;
            }
        }

        return;
    }
868167
public function getCache(string $name='')
  {
    # Find the cache (if we already have it created)
    $cache = $this->findCache($name);

    if (\is_null($cache)) {
      # Attempt to create the cache
      $cache = $this->createCache($name);

      if (!\is_null($cache)) {
        $this->addCache($cache);
      }
    }

    return $cache;
  }
1052540
private function getFilename($name)
    {
        if (file_exists($name)) {
            return $name;
        }

        [$plugin, $file] = pluginSplit($name);
        foreach ([null, $plugin] as $scope) {
            $paths = $this->getPaths($scope);
            foreach ($paths as $path) {
                $filePath = $path . $file;
                if (is_file($filePath)) {
                    return $filePath;
                }

                $filePath = $path . $file . TwigView::EXT;
                if (is_file($filePath)) {
                    return $filePath;
                }
            }
        }

        return false;
    }
612091
public function getPath(string $name = null)
    {
        if (is_null($name)) {
            return $this->get('path');
        }

        return $this->get('path', $name);
    }
262889
protected function getPath($name)
    {
        $name = isset($this->map[$name]) ? $this->map[$name] : $name;

        return "{$this->basePath}/{$name}.svg";
    }
962408
private function findPartialFile($name)
    {
        foreach ($this->partialDirs as $dir) {
            $file = $this->createPartialPath($dir, $name);

            if (is_file($file)) {
                return $file;
            }
        }

        return false;
    }
1172649
public function find($name)
    {

        if (strpos($name, '::') !== false) {
            return $this->findNamedPathView($name);
        }
        return $this->findInPaths($name, $this->paths);
    }
975290
protected function getCacheFilePath()
    {
        $hash = md5($this->filePath);
        $result = storage_path().'/cms/cache/';
        $result .= substr($hash, 0, 2).'/';
        $result .= substr($hash, 2, 2).'/';
        $result .= basename($this->filePath);
        $result .= '.php';

        return $result;
    }