Returns the file for the given file name
or false if the file does not exist.

@param string $type
@param string $assetName
@return false|\Zepi\Web\General\Entity\Asset
426555
public function getAssetFile($type, $assetName)
    {
        if (!$this->hasAsset($type, $assetName)) {
            return false;
        }
    
        // Sort the files by dependnecies
        $file = $this->assets[$type][$assetName];
    
        return $file;
    }
1319357
public function assetPath($fileName, array $options = [])
    {
        if ($this->isRelativePath($fileName)) {
            if (substr($fileName, 0, 1) == '/') {
                $path = $fileName;
            } else {
                $path = '';
                
                if ($this->config['serve_static_assets']) {
                    $path = $this->getStaticAssetUrl($fileName);
                }
                
                if (!$path) {
                    $file = $this->getService('assets')->findFile($fileName);
                    if (!$file) {
                        $path = $this->defaultPath($fileName, $options);
                    } else {
                        $path = $file->url();
                    }
                }
            }
            
            return $this->properPath($path, $options);
        } else {
            return $fileName;
        }
    }
1310061
public function importDeferred (Asset $asset) : bool
    {
        $fileType = $this->getFileType($asset);
        return $fileType->importDeferred();
    }
1171473
public function getFileContent($fileName)
    {
        if (!in_array($fileName, $this->files, true))
            return false;

        return $this->archive->getFileContent($fileName);
    }
1246934
public static function getFileFromManifest(array $config, string $fileName, string $type = 'legacy'): string
    {
        try {
            $path = self::getModuleEntry($config, $fileName, $type, true);
        } catch (NotFoundHttpException $e) {
            Craft::error($e->getMessage(), __METHOD__);
        }
        if ($path !== null) {
            $path = self::combinePaths(
                $config['localFiles']['basePath'],
                $path
            );

            return self::getFileFromUri($path, null) ?? '';
        }

        return '';
    }
198072
public function asset_find_file($params) {
        if (!isset($params['file'])) {
            throw new \UnexpectedValueException("The file parameter is required.");
        }
        if (!isset($params['type'])) {
            throw new \UnexpectedValueException("The type parameter is required.");
        }
        $folder = isset($params['folder']) ? $params['folder'] : '';
        return Asset::find_file($params['file'], $params['file'], $folder);
    }
146618
protected function getAsset($name) {
		$path  = $this->assetsPath . DIRECTORY_SEPARATOR . $name;
		$asset = file_get_contents($path);
		
		if ($asset === false) {
			throw new InvalidPath('Unable to get asset "' . $name . '" by path "' . $path . '"');
		}
		
		return $asset;
	}
880283
public static function getAssetFilePaths($type)
    {
        $path = sprintf('%s/assets/%s/', __DIR__, $type);
        $filenames = preg_grep('/^[^\.]/', scandir($path));
        if (!Arr::iterable($filenames)) {
            return array();
        }

        return array_map(function ($filename) use ($path) {
            return $path.$filename;
        }, $filenames);
    }
823734
public function getFiles($type)
	{
		$f = $type . 'Files';

		if (property_exists($this, $f))
		{
			return self::${$f};
		}

		$this->say('Missing Files: ' . $type);

		return "";
	}
602405
public function combine($type, &$files)
	{
		$basePath = realpath($this->getOption('basePath'));
		if(empty($basePath))return $files;
		$cacheName = $this->createCachePath($this->getOption('cacheFileName')?$this->getOption('cacheFileName'):$this->createFileName($type,$files)).'.'.$type;
		$this->setOption('coreUrl',$this->coreUrl);
		$minifier = new AssetsMinifier($this->options);
		$cacheUrl = $minifier->compress($type, $files, $cacheName);
		if(!empty($files))
		array_walk($files, function(&$value, $key) use($cacheUrl) {
			$value = $cacheUrl;
		});
		$this->cached[$type] = $cacheUrl;
	}
625104
public function getAssetFile($assetFile)
    {
        $assetFileId = Utilities::getEntityId(
            $assetFile,
            'WindowsAzure\MediaServices\Models\AssetFile'
        );

        return AssetFile::createFromOptions(
            $this->_getEntity("Files('{$assetFileId}')")
        );
    }
527481
public function asset($filename = null)
    {
        $path = rtrim($this->config->get('plates.assets'), '/');

        if ($path && strpos($path, '://') === false && strpos($path, '//') !== 0) {
            $path = '/' . ltrim($path, '/');
        }

        $filename = ltrim($filename, '/');
        if (!$filename) {
            return $path;
        }

        return $path . '/' . $filename;
    }
141367
public function get( $type = null ) 
	{
		if ( is_null( $type ) )
		{
			return $this->assets;
		}
		
		if ( !isset( $this->assets[$type] ) )
		{
			return array();
		}
		
		return $this->assets[$type];
	}
671022
public function fetchData($filename, $type) {
        $relPath    = $this->_getRelPath($filename, $type);
        //return $this->_getService()->fetch($relPath);
        $ini        = $this->_getIni();
        $cdnDomain  = $ini->cdn->domain;
        $url        = 'http://' . $cdnDomain . $relPath;

        $content = @file_get_contents($url);
        if ($content === false) {
            throw new Exception("Could not read {$url} on " . $this->getEnvironment());
        }

        // Check for gzipped content
        $unpacked = @gzdecode($content);
        $content = null !== $unpacked && false !== $unpacked ? $unpacked : $content;
        return $content;
    }
1280364
public static function createAssetOptions(array $config, $assetType)
    {
        $options = array();

        foreach ($config as $key => $value) {
            if (0 === strpos($key, $assetType.'-')) {
                $key = substr($key, \strlen($assetType) + 1);
                $options[$key] = $value;
            }
        }

        return $options;
    }
6374
public function content($type)
	{
		$assets = array();
		
		foreach ($this->assets as $asset) {
			if ('style' == $type && 'css' !== $asset['ext'] && 'less' !== $asset['ext']) {
				continue;
			}
			else if ('script' == $type && 'js' !== $asset['ext']) {
				continue;
			}
			
			$assets[] = $this->process($asset);
		}
		
		if (empty($assets)) {
			return '';
		}
		
		if (count($assets) > 1 || $this->minify) {
			$assets = $this->combine($assets, $type);
		}
		
		$content = array();
		
		foreach ($assets as $asset) {
			$content[] = File::get(array_get($asset, 'path'));
		}
		
		return implode("\n\n", $content);
	}
23135
public function getAssetFiles($type)
    {
        if (!isset($this->assets[$type])) {
            return false;
        }
        
        // Sort the files by dependnecies
        $files = $this->sortFilesByDependencies($this->assets[$type]);

        return $files;
    }