# file_size

Get the size of a file in bytes.

```rhai
file_size(path: &str) -> i64
```

## Examples

```rhai
let size = file_size("/var/log/syslog")?;
print(`Log file is ${size} bytes`);
```

```rhai
let size = file_size("/tmp/download.tar.gz")?;
if size < 1000000 {
    throw "Download seems incomplete";
}
```
