# GH_FileWatcher.FileChanged delegate

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public delegate GH_FileWatcher.FileChanged
```

Delegate method for file change callbacks.

**Signature:**

```cs
void GH_FileWatcher.FileChanged(GH_FileWatcher sender, string filename, WatcherChangeTypes change)
```

**Parameters:**

- `sender` ([GH_FileWatcher](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-filewatcher.md)): FileWatcher that invoked the delegate.
- `filename` ([string](https://learn.microsoft.com/dotnet/api/system.string)): Path to file that is being watched.
- `change` ([WatcherChangeTypes](https://learn.microsoft.com/dotnet/api/system.io.watcherchangetypes)): The type of change that occured.
