MatthiasMullie\Scrapbook\Adapters\Flysystem::exists PHP 메소드

exists() 보호된 메소드

protected exists ( string $key ) : boolean
$key string
리턴 boolean
    protected function exists($key)
    {
        $data = $this->read($key);
        if ($data === false) {
            return false;
        }
        $expire = $data[0];
        if ($expire !== 0 && $expire < time()) {
            // expired, don't keep it around
            $path = $this->path($key);
            $this->filesystem->delete($path);
            return false;
        }
        return true;
    }