# Sandbox.BaseFileSystem.FileSize

```csharp
long FileSize(string filepath)
```

Returns file size of given file.

### Parameters

- `filepath` (`string`): File path to the file to look up size of.

### Returns

`long`: File size, in bytes.

Declared in [Sandbox.BaseFileSystem](/api/Sandbox.BaseFileSystem).
Assembly: `Sandbox.Filesystem`.
