# compress

Enable or disable compression for file transfer.

## Signature

```rhai
file_transfer.compress(enable: bool) -> FileTransferBuilder
```

## Parameters

- `enable` - `true` to enable compression, `false` to disable

## Description

Compression reduces bandwidth usage during transfer. Enabled by default.

## Example

```rhai
let conn = ssh_builder()
    .host("example.com")
    .user("ubuntu")
    .build();

// Transfer with compression (default)
let result = conn.file_transfer()
    .compress(true)
    .push("/local/dir", "/remote/dir");
```
