# copy

Recursively copy a file or directory.

```rhai
copy(src: &str, dest: &str) -> String
```

## Examples

```rhai
copy("/tmp/source", "/tmp/dest")?;
print("Copied successfully");
```

```rhai
copy("/home/user/config.yaml", "/backup/config.yaml")?;
```
