public function write($key, $content) { $this->initialize(); $path = $this->computePath($key); $this->ensureDirectoryExists(\Gaufrette\Util\Path::dirname($path), true); $numBytes = $this->sftp->write($path, $content); return $numBytes; }