Gaufrette\Adapter\PhpseclibSftp::write PHP Method

write() public method

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