Gaufrette\Adapter\Sftp::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);
        $numBytes = $this->sftp->write($path, $content);
        return $numBytes;
    }