def write(self, buf, url):
(store_name, path) = self._split_url(url)<EOL>adapter = self._create_adapter(store_name)<EOL>with adapter.open(path, '<STR_LIT:wb>') as f:<EOL><INDENT>f.write(buf.encode())<EOL><DEDENT>
Write buffer to storage at a given url