protected function getLocalAdapter() : FilesystemInterface
    {
        if (is_null($this->localAdapter)) {
            $dir = $this->factory->getConnection()->getMapsDirectory();
            $this->localAdapter = new \League\Flysystem\Filesystem(new Local($dir.'/../'));
        }

        return $this->localAdapter;
    }