{"action":"opened","issue":{"url":"https://api.github.com/repos/xi-project/xi-filelib/issues/273","labels_url":"https://api.github.com/repos/xi-project/xi-filelib/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/xi-project/xi-filelib/issues/273/comments","events_url":"https://api.github.com/repos/xi-project/xi-filelib/issues/273/events","html_url":"https://github.com/xi-project/xi-filelib/issues/273","id":68938732,"number":273,"title":"overwrite problem with FlysystemStorageAdapter","user":{"login":"joonsp","id":455369,"avatar_url":"https://avatars.githubusercontent.com/u/455369?v=3","gravatar_id":"","url":"https://api.github.com/users/joonsp","html_url":"https://github.com/joonsp","followers_url":"https://api.github.com/users/joonsp/followers","following_url":"https://api.github.com/users/joonsp/following{/other_user}","gists_url":"https://api.github.com/users/joonsp/gists{/gist_id}","starred_url":"https://api.github.com/users/joonsp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joonsp/subscriptions","organizations_url":"https://api.github.com/users/joonsp/orgs","repos_url":"https://api.github.com/users/joonsp/repos","events_url":"https://api.github.com/users/joonsp/events{/privacy}","received_events_url":"https://api.github.com/users/joonsp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-16T14:40:43Z","updated_at":"2015-04-16T14:40:43Z","closed_at":null,"body":"in xi-filelib/library/Xi/Filelib/Storage/Adapter/FlysystemStorageAdapter.php\r\n```\r\n    public function storeVersion(Versionable $versionable, Version $version, $tempFile)\r\n    {\r\n        $pathName = $this->getVersionPathName($versionable, $version);\r\n        $this->filesystem->write($pathName, file_get_contents($tempFile)); \r\n    }\r\n```\r\n\r\nthe `write` call will fail if the file already exists. perhaps use `put` instead"}}