MatthiasMullie\Scrapbook\Adapters\Flysystem::unlock PHP Method

unlock() protected method

Release the lock for a given key.
protected unlock ( string $key ) : boolean
$key string
return boolean
    protected function unlock($key)
    {
        $path = $key . '.lock';
        try {
            $this->filesystem->delete($path);
        } catch (FileNotFoundException $e) {
            return false;
        }
        return true;
    }