public function writeStream(string $path, $resource): bool
    {
        return $this->flySystem->writeStream($path, $resource);
    }
public function writeStream(string $path, $resource): bool
    {
        return $this->flySystem->writeStream($path, $resource);
    }
public function writeStream ( string $ path , $ resource ) : bool { return $ this -> flySystem -> writeStream ( $ path , $ resource ) ; }
Write a file with a stream.

@param string   $path     The path
@param resource $resource The resource

@throws \InvalidArgumentException
@throws \League\Flysystem\FileExistsException

@return bool
Write a file with a stream .