elFinder\elFinderVolumeDriver::file PHP Method

file() public method

Return file info or false on error
Author: Dmitry (dio) Levashov
public file ( string $hash ) : array | false
$hash string file hash
return array | false
    public function file($hash)
    {
        $path = $this->decode($hash);
        return ($file = $this->stat($path)) ? $file : $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
        if (($file = $this->stat($path)) != false) {
            if ($realpath) {
                $file['realpath'] = $path;
            }
            return $file;
        }
        return $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
    }